branch: master
commit 80a1098493c88e0c61345c1657ba0f01c44c5422
Author: João Távora <joaotav...@gmail.com>
Commit: João Távora <joaotav...@gmail.com>

    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'.")

Reply via email to