]> code.delx.au - gnu-emacs-elpa/commitdiff
Bugfix: fix for #235 didn't load, usage before definition
authorJoao Tavora <joaotavora@gmail.com>
Thu, 2 Aug 2012 15:05:44 +0000 (16:05 +0100)
committerJoao Tavora <joaotavora@gmail.com>
Thu, 2 Aug 2012 15:05:44 +0000 (16:05 +0100)
yasnippet.el

index 49b5d85d829c2c3075d0924402f057c724c17e02..31ad6c5df7b298b31a131c574d0a8e9d921de931 100644 (file)
@@ -426,9 +426,6 @@ the trigger key itself."
     (dolist (key keys)
       (define-key keymap (read-kbd-macro key) definition))))
 
-(defvar yas-keymap (yas--init-yas-in-snippet-keymap)
-  "The keymap active while a snippet expansion is in progress.")
-
 (defun yas--init-yas-in-snippet-keymap ()
   (setq yas-keymap
         (let ((map (make-sparse-keymap)))
@@ -440,6 +437,9 @@ the trigger key itself."
                   (,yas-skip-and-clear-key . yas-skip-and-clear-or-delete-char)))
           map)))
 
+(defvar yas-keymap (yas--init-yas-in-snippet-keymap)
+  "The keymap active while a snippet expansion is in progress.")
+
 (defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()" "^ ")
   "List of character syntaxes used to find a trigger key before point.
 The list is tried in the order while scanning characters