emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master b62bdf3 163/177: Closes #546: backport `yas-initialize' an


From: João Távora
Subject: [elpa] master b62bdf3 163/177: Closes #546: backport `yas-initialize' and provide `yas/initialize'
Date: Sat, 28 Mar 2015 15:41:40 +0000

branch: master
commit b62bdf3fcd49dc38efbd55d9ee2e546631c6ae63
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]