GNU bug report logs -
#39668
26.2; timer-list and timer-idle-list are undocumented in the Elisp manual
Previous Next
Reported by: ndame <emacsuser <at> freemail.hu>
Date: Tue, 18 Feb 2020 17:58:02 UTC
Severity: normal
Found in version 26.2
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 39668 <at> debbugs.gnu.org (full text, mbox):
> Date: Tue, 18 Feb 2020 18:45:56 +0000 (GMT)
> From: ndame <emacsuser <at> freemail.hu>
> Cc: "39668 <at> debbugs.gnu.org" <39668 <at> debbugs.gnu.org>
>
> I needed to access the list of the active timers from an elisp program.
> Since timers are available from elisp, the list of timers should be
> available too, like the list of buffers, etc.
>
> I was suprised that I did not find this in the manual. Since timers are
> part of the public elisp api, I expect timer lists also to be part of the
> public api.
We don't describe those lists intentionally, because messing with them
can produce unexpected results. Think about that: while you are
modifying the list of timers, some timer might expire, and Emacs will
run it, and modify the list as result. (We do have protection from at
least the simplest forms of such races, but still, we don't like to
have Lisp programs manipulate those lists.)
Why do you need to access the active timers?
This bug report was last modified 5 years and 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.