From: Paul Eggert Date: Sat, 16 Mar 2019 01:31:31 +0000 (-0700) Subject: Bring back Emacs 26 compatibility to flymake.el X-Git-Tag: emacs-27.0.90~3406 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=164b78c714dd5300cc1e6f630dc596856486b432;p=emacs.git Bring back Emacs 26 compatibility to flymake.el * lisp/progmodes/flymake.el (flymake--schedule-timer-maybe): Revert to using seconds-to-time, since this file is part of ELPA and needs to work on Emacs 26 too. --- diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index 7afcf7891de..830d7009633 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -1005,7 +1005,9 @@ Do it only if `flymake-no-changes-timeout' is non-nil." (setq flymake-timer (run-with-idle-timer - (encode-time flymake-no-changes-timeout) + ;; This can use encode-time instead of seconds-to-time, + ;; once we can assume Emacs 27 or later. + (seconds-to-time flymake-no-changes-timeout) nil (lambda (buffer) (when (buffer-live-p buffer)