mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
no need for a separate yas/compile-bundle-for-elpa function
This commit is contained in:
parent
29d3991eb7
commit
51bd26520c
15
yasnippet.el
15
yasnippet.el
@ -1040,17 +1040,6 @@ foo\"bar\\! -> \"foo\\\"bar\\\\!\""
|
||||
t)
|
||||
"\""))
|
||||
|
||||
(defun yas/compile-bundle-for-elpa
|
||||
(&optional yasnippet yasnippet-bundle snippet-roots code)
|
||||
"Compile bundle for ELPA, add autoloads so that ELPA can
|
||||
generate code to load and activate YASnippet."
|
||||
(yas/compile-bundle
|
||||
yasnippet yasnippet-bundle snippet-roots
|
||||
(concat (or code "")
|
||||
"\n(yas/initialize-bundle)"
|
||||
"\n;;;###autoload" ; break through so that won't
|
||||
"(require 'yasnippet-bundle)"))) ; be treated as magic comment
|
||||
|
||||
(defun yas/compile-bundle
|
||||
(&optional yasnippet yasnippet-bundle snippet-roots code)
|
||||
"Compile snippets in SNIPPET-ROOTS to a single bundle file.
|
||||
@ -1071,7 +1060,9 @@ all the parameters:
|
||||
(when (null snippet-roots)
|
||||
(setq snippet-roots '("snippets")))
|
||||
(when (null code)
|
||||
(setq code "(yas/initialize-bundle)"))
|
||||
(setq code (concat "(yas/initialize-bundle)"
|
||||
"\n;;;###autoload" ; break through so that won't
|
||||
"(require 'yasnippet-bundle)"))) ; be treated as magic comment
|
||||
|
||||
(let ((dirs (or (and (listp snippet-roots) snippet-roots)
|
||||
(list snippet-roots)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user