]> git.eshelyaron.com Git - emacs.git/commitdiff
Bring back Emacs 26 compatibility to flymake.el
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Mar 2019 01:31:31 +0000 (18:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Mar 2019 01:31:59 +0000 (18:31 -0700)
* 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.

lisp/progmodes/flymake.el

index 7afcf7891deeb6c41541f51c61429e4700daa506..830d700963386643a16cf0125f46ef8648277537 100644 (file)
@@ -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)