emacs-diffs
[Top][All Lists]
Advanced

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

emacs-27 363d927 2/2: Fix bug with JIT stealth timers


From: Paul Eggert
Subject: emacs-27 363d927 2/2: Fix bug with JIT stealth timers
Date: Sat, 7 Mar 2020 12:50:25 -0500 (EST)

branch: emacs-27
commit 363d927086dbdc4e5073393889b76eb0470785f4
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Fix bug with JIT stealth timers
    
    * lisp/emacs-lisp/timer.el (run-at-time): Don’t assume that Lisp
    time values must be conses (Bug#39944).
---
 lisp/emacs-lisp/timer.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el
index 74a9495..9eb8fee 100644
--- a/lisp/emacs-lisp/timer.el
+++ b/lisp/emacs-lisp/timer.el
@@ -378,7 +378,7 @@ This function returns a timer object which you can use in
                                  (decoded-time-year now)
                                  (decoded-time-zone now)))))))
 
-  (or (consp time)
+  (or (time-equal-p time time)
       (error "Invalid time format"))
 
   (let ((timer (timer-create)))



reply via email to

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