"Enables/disables GUI warnings."
:group 'flymake
:type 'boolean)
+(make-obsolete-variable 'flymake-gui-warnings-enabled
+ "it no longer has any effect." "26.1")
(defcustom flymake-start-syntax-check-on-find-file t
"Start syntax check on find file."
(setq flymake-mode-line mode-line)
(force-mode-line-update)))
-(defun flymake-display-warning (warning)
- "Display a warning to user."
- (message-box warning))
+;; Nothing in flymake uses this at all any more, so this is just for
+;; third-party compatibility.
+(define-obsolete-function-alias 'flymake-display-warning 'message-box "26.1")
(defun flymake-report-fatal-status (status warning)
"Display a warning and switch flymake mode off."
- (when flymake-gui-warnings-enabled
- (flymake-display-warning (format "Flymake: %s. Flymake will be switched OFF" warning))
- )
+ ;; This should really by flymake-log 0, but that is not shown by default.
+ ;; flymake-mode already uses message if no file name.
+ ;; Another option is display-warning.
+ (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))