yas/load-directory-1: also start supressing emacs-lisp load messages when yas/verbosity is 2 or lower

This commit is contained in:
João Távora 2012-04-22 17:27:00 +01:00
parent b32edcca4c
commit 584d1d80bf

View File

@ -1637,7 +1637,7 @@ Below TOP-LEVEL-DIR each directory is a mode name."
"Recursively load snippet templates from DIRECTORY." "Recursively load snippet templates from DIRECTORY."
(unless (file-exists-p (concat directory "/" ".yas-skip")) (unless (file-exists-p (concat directory "/" ".yas-skip"))
(if (and (not no-compiled-snippets) (if (and (not no-compiled-snippets)
(load (expand-file-name ".yas-compiled-snippets" directory) 'noerror)) (load (expand-file-name ".yas-compiled-snippets" directory) 'noerror (<= yas/verbosity 2)))
(yas/message 2 "Loading much faster .yas-compiled-snippets from %s" directory) (yas/message 2 "Loading much faster .yas-compiled-snippets from %s" directory)
(yas/load-directory-2 directory mode-sym parents)))) (yas/load-directory-2 directory mode-sym parents))))