]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode.
authorJuri Linkov <juri@linkov.net>
Sun, 5 May 2019 20:07:44 +0000 (23:07 +0300)
committerJuri Linkov <juri@linkov.net>
Sun, 5 May 2019 20:07:44 +0000 (23:07 +0300)
Check for the value of flymake-mode after hooks are finished (bug#34294)

lisp/progmodes/flymake.el

index 5c7a7cc07063823b3c46250336c69b5f801435d6..abe2933c103cc99477842088f87e9182f1264704 100644 (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