branch: master
commit b62bdf3fcd49dc38efbd55d9ee2e546631c6ae63
Author: João Távora <[email protected]>
Commit: João Távora <[email protected]>
Closes #546: backport `yas-initialize' and provide `yas/initialize'
* yasnippet.el (yas-initialize): Renamed from `yas--initialize'.
(yas--backported-syms): Add `yas-initialize'
---
yasnippet.el | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/yasnippet.el b/yasnippet.el
index 15b9def..bbfca9c 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1941,10 +1941,6 @@ foo\"bar\\! -> \"foo\\\"bar\\\\!\""
;;; Snippet compilation function
-(defun yas--initialize ()
- "For backward compatibility, enable `yas-minor-mode' globally."
- (yas-global-mode 1))
-
(defun yas-compile-directory (top-level-dir)
"Create .yas-compiled-snippets.el files under subdirs of TOP-LEVEL-DIR.
@@ -4458,6 +4454,10 @@ and return the directory. Return nil if not found."
;;; Backward compatibility to yasnippet <= 0.7
+(defun yas-initialize ()
+ "For backward compatibility, enable `yas-minor-mode' globally."
+ (yas-global-mode 1))
+
(defvar yas--backported-syms '(;; `defcustom's
;;
yas-snippet-dirs
@@ -4523,6 +4523,7 @@ and return the directory. Return nil if not found."
yas-exit-snippet
yas-exit-all-snippets
yas-skip-and-clear-or-delete-char
+ yas-initialize
;; symbols that I "exported" for use
;; in snippets and hookage