[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master c6b9558: Mark flymake-diagnostic-functions as save
From: |
Sam Steingold |
Subject: |
[Emacs-diffs] master c6b9558: Mark flymake-diagnostic-functions as save to set locally to nil. |
Date: |
Tue, 7 Nov 2017 10:47:38 -0500 (EST) |
branch: master
commit c6b95584fc888bf566d42847d78447ddea60972a
Author: Sam Steingold <address@hidden>
Commit: Sam Steingold <address@hidden>
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 1048bc5..19dac81 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)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master c6b9558: Mark flymake-diagnostic-functions as save to set locally to nil.,
Sam Steingold <=