From 80a1098493c88e0c61345c1657ba0f01c44c5422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 10 Nov 2016 14:30:54 +0000 Subject: [PATCH] Rework yas-reload-all message introduced by #744 * yasnippet.el (yas-reload-all): Reword final message regarding snippet loading. --- yasnippet.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/yasnippet.el b/yasnippet.el index ec228fc..f627559 100644 --- a/yasnippet.el +++ b/yasnippet.el @@ -1876,9 +1876,15 @@ prefix argument." (yas-direct-keymaps-reload) (run-hooks 'yas-after-reload-hook) - (yas--message (if errors 2 3) "%s loading of snippets %s" - (if no-jit "Immediate" "Just-in-time") - (if errors "failed. Check *Messages*" "succeeded."))))) + (if no-jit + (yas--message (if errors 2 3) "Snippets loaded %s." + (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 "Hooks run after `yas-reload-all'.")