GNU bug report logs -
#37875
27.0.50; `run-with-timer' not documented in (elisp)Timers
Previous Next
Reported by: Phil Sainty <psainty <at> orcon.net.nz>
Date: Tue, 22 Oct 2019 18:39:01 UTC
Severity: minor
Tags: fixed
Found in version 27.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 28 Oct 2019 16:55:02 +0100
> Cc: Phil Sainty <psainty <at> orcon.net.nz>, 37875 <at> debbugs.gnu.org
>
> Does anybody know why run-with-timer was added? I think we should
> obsolete one or the other, and I think run-at-time has the best name.
$ fgrep run-with-timer lisp/ChangeLog.*
lisp/ChangeLog.17:15268: (desktop-auto-save-set-timer): Replace `run-with-timer' with
lisp/ChangeLog.6:2135: (run-with-timer): Just call run-at-time.
lisp/ChangeLog.6:2797: * timer.el (run-with-timer): Set repetition interval.
lisp/ChangeLog.6:2925: (run-with-timer): Renamed from run-after-delay.
lisp/ChangeLog.6:2926: (run-at-time, run-with-timer): Return the timer.
$ fgrep run-after-delay lisp/ChangeLog.*
lisp/ChangeLog.6:2935: (run-after-delay): New function.
And if you look up the last match, you will see that run-after-delay
was added on the same day timer.el got rewritten using the internal
timers (before that -- oh horror! -- it worked by running an external
program which delivered a signal to Emacs when the time came).
Does that answer your question?
(I don't really understand what would we gain by obsoleting such a
popular function.)
This bug report was last modified 5 years and 200 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.