emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] scratch/flymake-refactor 12aa247 19/52: Protect against ti


From: João Távora
Subject: [Emacs-diffs] scratch/flymake-refactor 12aa247 19/52: Protect against timer triggers when no flymake-mode
Date: Sun, 1 Oct 2017 12:40:46 -0400 (EDT)

branch: scratch/flymake-refactor
commit 12aa247b76e662f74d7289910fe759427cbd203f
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    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-ui.el (flymake-on-timer-event): Check flymake-mode
---
 lisp/progmodes/flymake-ui.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/flymake-ui.el b/lisp/progmodes/flymake-ui.el
index 92f075d..7fd9701 100644
--- a/lisp/progmodes/flymake-ui.el
+++ b/lisp/progmodes/flymake-ui.el
@@ -331,7 +331,8 @@ with flymake-specific meaning can also be used.
   "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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]