Skip to content

Commit

Permalink
Closes #549: Adjust load' verbosity to yas-verbosity'
Browse files Browse the repository at this point in the history
* yasnippet.el (yas--load-yas-setup-file): Be verbose on `load'
according to `yas-verbosity'
  • Loading branch information
joaotavora committed Apr 15, 2015
1 parent 7f4f6be commit 5aebe46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yasnippet.el
Expand Up @@ -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))))))

Expand Down

0 comments on commit 5aebe46

Please sign in to comment.