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
|
||||
prompt the user to select one."
|
||||
(let (errors)
|
||||
(if yas-snippet-dirs
|
||||
(when (member yas--default-user-snippets-dir yas-snippet-dirs)
|
||||
(make-directory yas--default-user-snippets-dir t))
|
||||
(dolist (directory (reverse (yas-snippet-dirs)))
|
||||
(cond ((file-directory-p directory)
|
||||
(yas-load-directory directory (not nojit))
|
||||
(if nojit
|
||||
(yas--message 3 "Loaded %s" directory)
|
||||
(yas--message 3 "Prepared just-in-time loading for %s" directory)))
|
||||
(t
|
||||
(push (yas--message 0 "Check your `yas-snippet-dirs': %s is not a directory" directory) errors))))
|
||||
(call-interactively 'yas-load-directory))
|
||||
(if (null yas-snippet-dirs)
|
||||
(call-interactively 'yas-load-directory)
|
||||
(when (member yas--default-user-snippets-dir yas-snippet-dirs)
|
||||
(make-directory yas--default-user-snippets-dir t))
|
||||
(dolist (directory (reverse (yas-snippet-dirs)))
|
||||
(cond ((file-directory-p directory)
|
||||
(yas-load-directory directory (not nojit))
|
||||
(if nojit
|
||||
(yas--message 3 "Loaded %s" directory)
|
||||
(yas--message 3 "Prepared just-in-time loading for %s" directory)))
|
||||
(t
|
||||
(push (yas--message 0 "Check your `yas-snippet-dirs': %s is not a directory" directory) errors)))))
|
||||
errors))
|
||||
|
||||
(defun yas-reload-all (&optional no-jit interactive)
|
||||
|
Loading…
x
Reference in New Issue
Block a user