]> git.eshelyaron.com Git - emacs.git/commitdiff
Mark flymake-diagnostic-functions as save to set locally to nil.
authorSam Steingold <sds@gnu.org>
Tue, 7 Nov 2017 15:46:33 +0000 (10:46 -0500)
committerSam Steingold <sds@gnu.org>
Tue, 7 Nov 2017 15:46:45 +0000 (10:46 -0500)
* 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

index 1048bc5065559991c64453cb238ff41d4752c063..19dac81fe6da8c602bd932494485d64f3ed12cd7 100644 (file)
@@ -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)))