diff options
| author | Sam Steingold | 2017-11-07 10:46:33 -0500 |
|---|---|---|
| committer | Sam Steingold | 2017-11-07 10:46:45 -0500 |
| commit | c6b95584fc888bf566d42847d78447ddea60972a (patch) | |
| tree | 2dd7c4912e5f190fad50c06b0117adbc90d45ba2 | |
| parent | 9071ac63aecf96879ec9807257c7b0cae8e8b18e (diff) | |
| download | emacs-c6b95584fc888bf566d42847d78447ddea60972a.tar.gz emacs-c6b95584fc888bf566d42847d78447ddea60972a.zip | |
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'.
| -rw-r--r-- | lisp/progmodes/flymake.el | 2 |
1 files changed, 2 insertions, 0 deletions
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: | |||
| 407 | * `:force': value should be a boolean suggesting that Flymake | 407 | * `:force': value should be a boolean suggesting that Flymake |
| 408 | consider the report even if it was somehow unexpected.") | 408 | consider the report even if it was somehow unexpected.") |
| 409 | 409 | ||
| 410 | (put 'flymake-diagnostic-functions 'safe-local-variable #'null) | ||
| 411 | |||
| 410 | (defvar flymake-diagnostic-types-alist | 412 | (defvar flymake-diagnostic-types-alist |
| 411 | `((:error | 413 | `((:error |
| 412 | . ((flymake-category . flymake-error))) | 414 | . ((flymake-category . flymake-error))) |