mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
* yasnippet.el (yas-reload-all): Mention if no snippets were found.
This commit is contained in:
parent
b1ca219706
commit
ce11fd6690
19
yasnippet.el
19
yasnippet.el
@ -1936,12 +1936,19 @@ prefix argument."
|
|||||||
(yas-direct-keymaps-reload)
|
(yas-direct-keymaps-reload)
|
||||||
|
|
||||||
(run-hooks 'yas-after-reload-hook)
|
(run-hooks 'yas-after-reload-hook)
|
||||||
(yas--message (if errors 2 3)
|
(let ((no-snippets
|
||||||
(if no-jit "Snippets loaded %s."
|
(cl-every (lambda (table) (= (hash-table-count table) 0))
|
||||||
"Prepared just-in-time loading of snippets %s.")
|
(list yas--scheduled-jit-loads
|
||||||
(if errors
|
yas--parents yas--tables))))
|
||||||
"with some errors. Check *Messages*"
|
(yas--message (if (or no-snippets errors) 2 3)
|
||||||
"successfully")))))
|
(if no-jit "Snippets loaded %s."
|
||||||
|
"Prepared just-in-time loading of snippets %s.")
|
||||||
|
(cond (errors
|
||||||
|
"with some errors. Check *Messages*")
|
||||||
|
(no-snippets
|
||||||
|
"(but no snippets found)")
|
||||||
|
(t
|
||||||
|
"successfully")))))))
|
||||||
|
|
||||||
(defvar yas-after-reload-hook nil
|
(defvar yas-after-reload-hook nil
|
||||||
"Hooks run after `yas-reload-all'.")
|
"Hooks run after `yas-reload-all'.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user