From: Juri Linkov Date: Sun, 5 May 2019 20:07:44 +0000 (+0300) Subject: * lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode. X-Git-Tag: emacs-27.0.90~2959 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=31c60dfbd8541c9f1b1bc8127dde85e5d5af51b5;p=emacs.git * lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode. Check for the value of flymake-mode after hooks are finished (bug#34294) --- 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." (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