]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve use of flymake-no-changes-timeout
authorJoão Távora <joaotavora@gmail.com>
Sat, 30 Sep 2017 09:45:48 +0000 (10:45 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 3 Oct 2017 00:07:32 +0000 (01:07 +0100)
Can be set to nil to disable automatic periodic checks.

* lisp/progmodes/flymake.el (flymake-no-changes-timeout): Improve doc
(flymake-on-timer-event): Use it.

lisp/progmodes/flymake.el

index ecd0df978604bc851d743c6b99ab52160a9175f8..318328265bd1aa3942e745ba57d2dceb6ce34c56 100644 (file)
@@ -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
@@ -496,6 +497,7 @@ associated `flymake-category' 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))