emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 164b78c: Bring back Emacs 26 compatibility to flyma


From: Paul Eggert
Subject: [Emacs-diffs] master 164b78c: Bring back Emacs 26 compatibility to flymake.el
Date: Fri, 15 Mar 2019 21:32:04 -0400 (EDT)

branch: master
commit 164b78c714dd5300cc1e6f630dc596856486b432
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    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.
---
 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 7afcf78..830d700 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]