aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2016-12-05 20:11:01 -0500
committerGlenn Morris2016-12-05 20:11:01 -0500
commit13d4dd1add0f13c0b1462f27f9fab55a1ff67a66 (patch)
tree68cda020ac6f14aacb56332226a8985bb3a8439c
parent81059cb970f95362eb52d6f53bbf02c70172048b (diff)
downloademacs-13d4dd1add0f13c0b1462f27f9fab55a1ff67a66.tar.gz
emacs-13d4dd1add0f13c0b1462f27f9fab55a1ff67a66.zip
Tweak recent flymake change
* lisp/progmodes/flymake.el (flymake-report-fatal-status): Avoid double message when flymake-log-level >= 0. * doc/misc/flymake.texi (Customizable variables): No longer mention flymake-gui-warnings-enabled.
-rw-r--r--doc/misc/flymake.texi6
-rw-r--r--lisp/progmodes/flymake.el7
2 files changed, 4 insertions, 9 deletions
diff --git a/doc/misc/flymake.texi b/doc/misc/flymake.texi
index 998f1b35170..6cece30a986 100644
--- a/doc/misc/flymake.texi
+++ b/doc/misc/flymake.texi
@@ -323,12 +323,6 @@ file cannot be run simultaneously.
323If any changes are made to the buffer, syntax check is automatically 323If any changes are made to the buffer, syntax check is automatically
324started after @code{flymake-no-changes-timeout} seconds. 324started after @code{flymake-no-changes-timeout} seconds.
325 325
326@item flymake-gui-warnings-enabled
327A boolean flag indicating whether Flymake will show message boxes for
328non-recoverable errors. If @code{flymake-gui-warnings-enabled} is
329@code{nil}, these errors will only be logged to the @file{*Messages*}
330buffer.
331
332@item flymake-start-syntax-check-on-newline 326@item flymake-start-syntax-check-on-newline
333A boolean flag indicating whether to start syntax check after a 327A boolean flag indicating whether to start syntax check after a
334newline character is added to the buffer. 328newline character is added to the buffer.
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index cb9f7b66ff0..846ec22dbe3 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -1198,10 +1198,11 @@ For the format of LINE-ERR-INFO, see `flymake-ler-make-ler'."
1198 1198
1199(defun flymake-report-fatal-status (status warning) 1199(defun flymake-report-fatal-status (status warning)
1200 "Display a warning and switch flymake mode off." 1200 "Display a warning and switch flymake mode off."
1201 ;; This should really by flymake-log 0, but that is not shown by default. 1201 ;; This first message was always shown by default, and flymake-log
1202 ;; flymake-mode already uses message if no file name. 1202 ;; does nothing by default, hence the use of message.
1203 ;; Another option is display-warning. 1203 ;; Another option is display-warning.
1204 (message "Flymake: %s. Flymake will be switched OFF" warning) 1204 (if (< flymake-log-level 0)
1205 (message "Flymake: %s. Flymake will be switched OFF" warning))
1205 (flymake-mode 0) 1206 (flymake-mode 0)
1206 (flymake-log 0 "switched OFF Flymake mode for buffer %s due to fatal status %s, warning %s" 1207 (flymake-log 0 "switched OFF Flymake mode for buffer %s due to fatal status %s, warning %s"
1207 (buffer-name) status warning)) 1208 (buffer-name) status warning))