From: João Távora Date: Wed, 20 Sep 2017 18:10:30 +0000 (+0100) Subject: Protect against timer triggers when no flymake-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=555bea3615c2fb032c2b24ff6252e4322e9192d0;p=emacs.git Protect against timer triggers when no flymake-mode Not 100% sure on how to trigger this error, but it happened once or twice, possibly during heavy debugging scenarios that wouldn't really happen. But a good idea anyway. * lisp/progmodes/flymake.el (flymake-on-timer-event): Check flymake-mode --- diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index e8d5de6023c..7968070b34a 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -361,7 +361,8 @@ return DEFAULT." "Start a syntax check for buffer BUFFER if necessary." (when (buffer-live-p buffer) (with-current-buffer buffer - (when (and (not flymake-is-running) + (when (and flymake-mode + (not flymake-is-running) flymake-last-change-time (> (- (float-time) flymake-last-change-time) flymake-no-changes-timeout))