]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bug with JIT stealth timers
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Mar 2020 17:47:03 +0000 (09:47 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 7 Mar 2020 17:50:18 +0000 (09:50 -0800)
* 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

index 74a94957e7378c7774f73258af50923dd97496f3..9eb8feed0f1c52c4b49a7692d94cd9ae165c07f6 100644 (file)
@@ -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)))