From c6b95584fc888bf566d42847d78447ddea60972a Mon Sep 17 00:00:00 2001 From: Sam Steingold Date: Tue, 7 Nov 2017 10:46:33 -0500 Subject: [PATCH] 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'. --- lisp/progmodes/flymake.el | 2 ++ 1 file changed, 2 insertions(+) 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))) -- 2.39.5