]> git.eshelyaron.com Git - emacs.git/commit
timer.el: Avoid repeated timers
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 5 Aug 2022 14:38:59 +0000 (10:38 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 5 Aug 2022 14:38:59 +0000 (10:38 -0400)
commiteb7fe81e6db8d630521098a728713e10c9d59c74
treed202375c87ccf5869afda0e368ca26bb90f2a39c
parentdf263dd7586436b06262e32aa3614e11ed3a6182
timer.el: Avoid repeated timers

https://mail.gnu.org/archive/html/emacs-devel/2022-07/msg01127.html
points out that end-users can get bitten by this, accidentally
calling `timer-activate` on an already activated timer.

* lisp/emacs-lisp/timer.el (timer--activate): Signal an error if we try
to re-add a timer that's already on the timer-list.
lisp/emacs-lisp/timer.el