[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 5aebe46 08/60: Closes #549: Adjust `load' verbosity to `ya

From: João Távora
Subject: [elpa] master 5aebe46 08/60: Closes #549: Adjust `load' verbosity to `yas-verbosity'
Date: Thu, 21 Jan 2016 22:35:50 +0000

branch: master
commit 5aebe46e5c50ac9375ac2271c7a7e4f2df442eb3
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    Closes #549: Adjust `load' verbosity to `yas-verbosity'
    * yasnippet.el (yas--load-yas-setup-file): Be verbose on `load'
    according to `yas-verbosity'
 yasnippet.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/yasnippet.el b/yasnippet.el
index 45702e4..305bb95 100644
--- a/yasnippet.el
+++ b/yasnippet.el
@@ -1702,10 +1702,10 @@ the current buffers contents."
 (defun yas--load-yas-setup-file (file)
   (if (not yas--creating-compiled-snippets)
       ;; Normal case.
-      (load file 'noerror)
+      (load file 'noerror (<= yas-verbosity 2))
     (let ((elfile (concat file ".el")))
       (when (file-exists-p elfile)
-        (insert ";;; .yas-setup.el support file if any:\n;;;\n")
+        (insert ";;; contents of the .yas-setup.el support file:\n;;;\n")
         (insert-file-contents elfile)
         (goto-char (point-max))))))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]