fix: get rid of yas/no-jit', interactive calls to yas/reload-all' do *not* use jit

This commit is contained in:
Joao Tavora 2012-05-21 14:46:33 +01:00
parent bbef037483
commit 9fc2e20d91

View File

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