1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

* lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode.

Check for the value of flymake-mode after hooks are finished (bug#34294)
This commit is contained in:
Juri Linkov 2019-05-05 23:07:44 +03:00
parent be3ab9f301
commit 31c60dfbd8

View file

@ -860,6 +860,7 @@ with a report function."
(defvar-local flymake--recent-changes nil
"Recent changes collected by `flymake-after-change-function'.")
(defvar flymake-mode)
(defun flymake-start (&optional deferred force)
"Start a syntax check for the current buffer.
@ -904,7 +905,7 @@ Interactively, with a prefix arg, FORCE is t."
(add-hook 'window-configuration-change-hook
#'start-on-display
'append 'local))
(t
(flymake-mode
(setq flymake-check-start-time (float-time))
(let ((backend-args
(and