From be9dd4c28dd6ea2e26b791133c6789bbf8dba236 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Sat, 30 Sep 2017 10:45:48 +0100 Subject: [PATCH] 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. --- lisp/progmodes/flymake.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.5