mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
Avoid double snippet loading messages
* yasnippet.el (yas--load-directory-1): Message about loading compiled snippets only after successfully doing so. Close #627.
This commit is contained in:
parent
b055f132be
commit
b8687bb0fe
@ -1779,8 +1779,8 @@ With prefix argument USE-JIT do jit-loading of snippets."
|
||||
(current-time-string)))))
|
||||
;; Normal case.
|
||||
(unless (file-exists-p (concat directory "/" ".yas-skip"))
|
||||
(if (and (progn (yas--message 2 "Loading compiled snippets from %s" directory) t)
|
||||
(load (expand-file-name ".yas-compiled-snippets" directory) 'noerror (<= yas-verbosity 3)))
|
||||
(unless (and (load (expand-file-name ".yas-compiled-snippets" directory) 'noerror (<= yas-verbosity 3))
|
||||
(progn (yas--message 2 "Loaded compiled snippets from %s" directory) t))
|
||||
(yas--message 2 "Loading snippet files from %s" directory)
|
||||
(yas--load-directory-2 directory mode-sym)))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user