(numberp arg)
(> arg 1))
;; explicitly enabling
- (yas/reload-all 'with-jit))
+ (yas/reload-all))
((not yas/global-mode)
;; toggling
- (yas/reload-all 'with-jit))))
+ (yas/reload-all))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Major mode stuff
(call-interactively 'yas/load-directory))
errors))
-(defun yas/reload-all (&optional nojit)
- "Reload all snippets and rebuild the YASnippet menu. "
+(defvar yas/no-jit nil
+ "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.
+
+Behaviour is affected by `yas/no-jit', which see."
(interactive "p")
(let ((errors))
;; Empty all snippet tables, parenting info and all menu tables
;; Reload the directories listed in `yas/snippet-dirs' or prompt
;; the user to select one.
;;
- (setq errors (yas/load-snippet-dirs nojit))
+ (setq errors (yas/load-snippet-dirs yas/no-jit))
;; Reload the direct keybindings
;;
(yas/direct-keymaps-reload)