emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/flymake-refactor 54ec5eb 47/52: Improve use of fly


From: João Távora
Subject: [Emacs-diffs] scratch/flymake-refactor 54ec5eb 47/52: Improve use of flymake-no-changes-timeout
Date: Sun, 1 Oct 2017 12:40:51 -0400 (EDT)

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

    Improve use of flymake-no-changes-timeout
    
    Can be set to nil to disable automatic periodic checks.
    
    * lisp/progmodes/flymake-ui.el (flymake-no-changes-timeout): Improve doc
    (flymake-on-timer-event): Use it.
    
    squash in no changes-timeout
---
 lisp/progmodes/flymake-ui.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/flymake-ui.el b/lisp/progmodes/flymake-ui.el
index c8842b0..9d95bf8 100644
--- a/lisp/progmodes/flymake-ui.el
+++ b/lisp/progmodes/flymake-ui.el
@@ -101,7 +101,8 @@ See `flymake-error-bitmap' and `flymake-warning-bitmap'."
   :type 'boolean)
 
 (defcustom flymake-no-changes-timeout 0.5
-  "Time to wait after last change before starting compilation."
+  "Time to wait after last change before automatically checking buffer.
+If nil, never start checking buffer automatically like this."
   :type 'number)
 
 (defcustom flymake-gui-warnings-enabled t
@@ -482,6 +483,7 @@ return DEFAULT."
     (with-current-buffer buffer
       (when (and flymake-mode
                 flymake-last-change-time
+                 flymake-no-changes-timeout
                 (> (- (float-time) flymake-last-change-time)
                     flymake-no-changes-timeout))
 



reply via email to

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