mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
Make jit-loading be the default. See issue #240.
This commit is contained in:
parent
ad5f63ca95
commit
ed85eb488b
14
yasnippet.el
14
yasnippet.el
@ -855,10 +855,10 @@ Do this unless `yas/dont-activate' is truish "
|
|||||||
(numberp arg)
|
(numberp arg)
|
||||||
(> arg 1))
|
(> arg 1))
|
||||||
;; explicitly enabling
|
;; explicitly enabling
|
||||||
(yas/reload-all 'with-jit))
|
(yas/reload-all))
|
||||||
((not yas/global-mode)
|
((not yas/global-mode)
|
||||||
;; toggling
|
;; toggling
|
||||||
(yas/reload-all 'with-jit))))
|
(yas/reload-all))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Major mode stuff
|
;; Major mode stuff
|
||||||
@ -1675,8 +1675,12 @@ Below TOP-LEVEL-DIR each directory is a mode name."
|
|||||||
(call-interactively 'yas/load-directory))
|
(call-interactively 'yas/load-directory))
|
||||||
errors))
|
errors))
|
||||||
|
|
||||||
(defun yas/reload-all (&optional nojit)
|
(defvar yas/no-jit nil
|
||||||
"Reload all snippets and rebuild the YASnippet menu. "
|
"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")
|
(interactive "p")
|
||||||
(let ((errors))
|
(let ((errors))
|
||||||
;; Empty all snippet tables, parenting info and all menu tables
|
;; Empty all snippet tables, parenting info and all menu tables
|
||||||
@ -1698,7 +1702,7 @@ Below TOP-LEVEL-DIR each directory is a mode name."
|
|||||||
;; 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 nojit))
|
(setq errors (yas/load-snippet-dirs yas/no-jit))
|
||||||
;; Reload the direct keybindings
|
;; Reload the direct keybindings
|
||||||
;;
|
;;
|
||||||
(yas/direct-keymaps-reload)
|
(yas/direct-keymaps-reload)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user