From: Sam Steingold Date: Tue, 7 Nov 2017 15:46:33 +0000 (-0500) Subject: Mark flymake-diagnostic-functions as save to set locally to nil. X-Git-Tag: emacs-27.0.90~6181 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c6b95584fc888bf566d42847d78447ddea60972a;p=emacs.git Mark flymake-diagnostic-functions as save to set locally to nil. * lisp/progmodes/flymake.el (flymake-diagnostic-functions): Set `safe-local-variable' property to `null'. Now one can disable flymake-mode locally in a file by setting `flymake-diagnostic-functions' to nil, see `(Emacs)File Variables'. --- diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 1048bc50655..19dac81fe6d 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -407,6 +407,8 @@ Currently accepted REPORT-KEY arguments are: * `:force': value should be a boolean suggesting that Flymake consider the report even if it was somehow unexpected.") +(put 'flymake-diagnostic-functions 'safe-local-variable #'null) + (defvar flymake-diagnostic-types-alist `((:error . ((flymake-category . flymake-error)))