Rework yas-reload-all message introduced by #744

* yasnippet.el (yas-reload-all): Reword final message regarding
snippet loading.
This commit is contained in:
João Távora 2016-11-10 14:30:54 +00:00
parent 4fa52e6ac2
commit 80a1098493

View File

@ -1876,9 +1876,15 @@ 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) "%s loading of snippets %s" (if no-jit
(if no-jit "Immediate" "Just-in-time") (yas--message (if errors 2 3) "Snippets loaded %s."
(if errors "failed. Check *Messages*" "succeeded."))))) (if errors
"with some errors. Check *Messages*"
"successfully"))
(yas--message (if errors 2 3)
"Prepared just-in-time loading of snippets %s."
(if errors "with some errors. Check *Messages*"
"sucessfully" ))))))
(defvar yas-after-reload-hook nil (defvar yas-after-reload-hook nil
"Hooks run after `yas-reload-all'.") "Hooks run after `yas-reload-all'.")