Say how to hide the backquote side-effect warning

* yasnippet.el (yas--save-backquotes): Explain how to hide warning in
the warning message.
This commit is contained in:
Noam Postavsky 2016-06-22 19:58:56 -04:00
parent 655bda804b
commit 6b785e185f

View File

@ -4040,7 +4040,8 @@ with their evaluated value into `yas--backquote-markers-and-strings'."
(push (cons marker transformed) yas--backquote-markers-and-strings))))) (push (cons marker transformed) yas--backquote-markers-and-strings)))))
(when yas--change-detected (when yas--change-detected
(lwarn '(yasnippet backquote-change) :warning (lwarn '(yasnippet backquote-change) :warning
"`%s' modified buffer in a backquote expression." "`%s' modified buffer in a backquote expression.
To hide this warning, add (yasnippet backquote-change) to `warning-suppress-types'."
(if yas--current-template (if yas--current-template
(yas--template-name yas--current-template) (yas--template-name yas--current-template)
"Snippet"))))) "Snippet")))))