]> git.eshelyaron.com Git - emacs.git/commitdiff
mark flymake-mode as safe local variable when the value is nil
authorSam Steingold <sds@gnu.org>
Mon, 21 Aug 2017 13:50:09 +0000 (09:50 -0400)
committerSam Steingold <sds@gnu.org>
Mon, 21 Aug 2017 13:50:09 +0000 (09:50 -0400)
lisp/progmodes/flymake-ui.el

index 3fb1ecaa7f04858dd3f54755411e69cd2cca79d5..69f0c77a71ef4fe8f3741f33afbf420f61f1b1bf 100644 (file)
@@ -517,6 +517,9 @@ For the format of LINE-ERR-INFO, see `flymake-ler-make-ler'."
 
     (setq flymake-is-running nil))))
 
+;; disabling flymake-mode is safe, enabling - not necessarily so
+(put 'flymake-mode 'safe-local-variable 'null)
+
 ;;;###autoload
 (defun flymake-mode-on ()
   "Turn flymake mode on."