From 12c21c6c62d02a27917e4214e4ce0322dcc099fc Mon Sep 17 00:00:00 2001 From: Joao Tavora Date: Thu, 2 Aug 2012 16:05:44 +0100 Subject: [PATCH] Bugfix: fix for #235 didn't load, usage before definition --- yasnippet.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index 49b5d85..31ad6c5 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -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