From: João Távora Date: Sat, 30 Sep 2017 09:45:48 +0000 (+0100) Subject: Improve use of flymake-no-changes-timeout X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=be9dd4c28dd6ea2e26b791133c6789bbf8dba236;p=emacs.git Improve use of flymake-no-changes-timeout 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. --- diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index ecd0df97860..318328265bd 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.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 @@ -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))