If any changes are made to the buffer, syntax check is automatically
started after @code{flymake-no-changes-timeout} seconds.
-@item flymake-gui-warnings-enabled
-A boolean flag indicating whether Flymake will show message boxes for
-non-recoverable errors. If @code{flymake-gui-warnings-enabled} is
-@code{nil}, these errors will only be logged to the @file{*Messages*}
-buffer.
-
@item flymake-start-syntax-check-on-newline
A boolean flag indicating whether to start syntax check after a
newline character is added to the buffer.
(defun flymake-report-fatal-status (status warning)
"Display a warning and switch flymake mode off."
- ;; This should really by flymake-log 0, but that is not shown by default.
- ;; flymake-mode already uses message if no file name.
+ ;; This first message was always shown by default, and flymake-log
+ ;; does nothing by default, hence the use of message.
;; Another option is display-warning.
- (message "Flymake: %s. Flymake will be switched OFF" warning)
+ (if (< flymake-log-level 0)
+ (message "Flymake: %s. Flymake will be switched OFF" warning))
(flymake-mode 0)
(flymake-log 0 "switched OFF Flymake mode for buffer %s due to fatal status %s, warning %s"
(buffer-name) status warning))