mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Fix silly mistake in previous commit
* yasnippet.el (yas--load-snippet-dirs): Put `make-directory' call in same branch of the `if' as the `dolist' loop.
This commit is contained in:
parent
46256db43d
commit
1a98c38d9c
24
yasnippet.el
24
yasnippet.el
@ -1805,18 +1805,18 @@ With prefix argument USE-JIT do jit-loading of snippets."
|
|||||||
"Reload the directories listed in `yas-snippet-dirs' or
|
"Reload the directories listed in `yas-snippet-dirs' or
|
||||||
prompt the user to select one."
|
prompt the user to select one."
|
||||||
(let (errors)
|
(let (errors)
|
||||||
(if yas-snippet-dirs
|
(if (null yas-snippet-dirs)
|
||||||
(when (member yas--default-user-snippets-dir yas-snippet-dirs)
|
(call-interactively 'yas-load-directory)
|
||||||
(make-directory yas--default-user-snippets-dir t))
|
(when (member yas--default-user-snippets-dir yas-snippet-dirs)
|
||||||
(dolist (directory (reverse (yas-snippet-dirs)))
|
(make-directory yas--default-user-snippets-dir t))
|
||||||
(cond ((file-directory-p directory)
|
(dolist (directory (reverse (yas-snippet-dirs)))
|
||||||
(yas-load-directory directory (not nojit))
|
(cond ((file-directory-p directory)
|
||||||
(if nojit
|
(yas-load-directory directory (not nojit))
|
||||||
(yas--message 3 "Loaded %s" directory)
|
(if nojit
|
||||||
(yas--message 3 "Prepared just-in-time loading for %s" directory)))
|
(yas--message 3 "Loaded %s" directory)
|
||||||
(t
|
(yas--message 3 "Prepared just-in-time loading for %s" directory)))
|
||||||
(push (yas--message 0 "Check your `yas-snippet-dirs': %s is not a directory" directory) errors))))
|
(t
|
||||||
(call-interactively 'yas-load-directory))
|
(push (yas--message 0 "Check your `yas-snippet-dirs': %s is not a directory" directory) errors)))))
|
||||||
errors))
|
errors))
|
||||||
|
|
||||||
(defun yas-reload-all (&optional no-jit interactive)
|
(defun yas-reload-all (&optional no-jit interactive)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user