From: Dmitry Gutov Date: Tue, 30 Jul 2019 13:55:33 +0000 (+0300) Subject: Guard against flymake-no-changes-timeout being nil X-Git-Tag: emacs-27.0.90~1817^2~5 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=56db1e84a09b887539adf2b24479d58ddaad5843;p=emacs.git Guard against flymake-no-changes-timeout being nil * test/lisp/progmodes/flymake-tests.el (flymake-tests--wait-for-backends): Guard against flymake-no-changes-timeout being nil (in personal configurations) to help when running tests interactively. --- diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el index af9729028cf..224c57e78a8 100644 --- a/test/lisp/progmodes/flymake-tests.el +++ b/test/lisp/progmodes/flymake-tests.el @@ -52,7 +52,7 @@ (flymake-reporting-backends)) while notdone unless noninteractive do (read-event "" nil 0.1) - do (sleep-for (+ 0.5 flymake-no-changes-timeout)) + do (sleep-for (+ 0.5 (or flymake-no-changes-timeout 0))) finally (when notdone (ert-skip (format "Some backends not reporting yet %s" notdone)))))