From 31c60dfbd8541c9f1b1bc8127dde85e5d5af51b5 Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sun, 5 May 2019 23:07:44 +0300 Subject: [PATCH] * lisp/progmodes/flymake.el (flymake-start): Check for flymake-mode. Check for the value of flymake-mode after hooks are finished (bug#34294) --- lisp/progmodes/flymake.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2