aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-05-05 23:07:44 +0300
committerJuri Linkov2019-05-05 23:07:44 +0300
commit31c60dfbd8541c9f1b1bc8127dde85e5d5af51b5 (patch)
treebc6cf38ac202242cb10b731165913d7b60cf3bda
parentbe3ab9f301bf741b0410c1f9fb1c5ce6dda1c39a (diff)
downloademacs-31c60dfbd8541c9f1b1bc8127dde85e5d5af51b5.tar.gz
emacs-31c60dfbd8541c9f1b1bc8127dde85e5d5af51b5.zip
* lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode.
Check for the value of flymake-mode after hooks are finished (bug#34294)
-rw-r--r--lisp/progmodes/flymake.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
index 5c7a7cc0706..abe2933c103 100644
--- a/lisp/progmodes/flymake.el
+++ b/lisp/progmodes/flymake.el
@@ -860,6 +860,7 @@ with a report function."
860 860
861(defvar-local flymake--recent-changes nil 861(defvar-local flymake--recent-changes nil
862 "Recent changes collected by `flymake-after-change-function'.") 862 "Recent changes collected by `flymake-after-change-function'.")
863(defvar flymake-mode)
863 864
864(defun flymake-start (&optional deferred force) 865(defun flymake-start (&optional deferred force)
865 "Start a syntax check for the current buffer. 866 "Start a syntax check for the current buffer.
@@ -904,7 +905,7 @@ Interactively, with a prefix arg, FORCE is t."
904 (add-hook 'window-configuration-change-hook 905 (add-hook 'window-configuration-change-hook
905 #'start-on-display 906 #'start-on-display
906 'append 'local)) 907 'append 'local))
907 (t 908 (flymake-mode
908 (setq flymake-check-start-time (float-time)) 909 (setq flymake-check-start-time (float-time))
909 (let ((backend-args 910 (let ((backend-args
910 (and 911 (and