]> code.delx.au - gnu-emacs-elpa/commitdiff
fix: get rid of `yas/no-jit', interactive calls to `yas/reload-all' do *not* use jit
authorJoao Tavora <joaotavora@gmail.com>
Mon, 21 May 2012 13:46:33 +0000 (14:46 +0100)
committerJoao Tavora <joaotavora@gmail.com>
Mon, 21 May 2012 13:46:33 +0000 (14:46 +0100)
yasnippet.el

index 3b7622205ff05a325e30ed985582a1e74715ff3b..dde988cea025c0ee97196fcc95f5abbfc2594e6c 100644 (file)
@@ -1675,9 +1675,7 @@ Below TOP-LEVEL-DIR each directory is a mode name."
       (call-interactively 'yas/load-directory))
     errors))
 
-(defvar yas/no-jit nil
-  "Non-nil forces `yas/reload-all' to skip jit-loading and load every directory.")
-(defun yas/reload-all ()
+(defun yas/reload-all (&optional no-jit)
   "Reload all snippets and rebuild the YASnippet menu.
 
 Behaviour is affected by `yas/no-jit', which see."
@@ -1702,7 +1700,7 @@ Behaviour is affected by `yas/no-jit', which see."
     ;; Reload the directories listed in `yas/snippet-dirs' or prompt
     ;; the user to select one.
     ;;
-    (setq errors (yas/load-snippet-dirs yas/no-jit))
+    (setq errors (yas/load-snippet-dirs no-jit))
     ;; Reload the direct keybindings
     ;;
     (yas/direct-keymaps-reload)