unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?
@ 2021-11-11 20:31 Alan Mackenzie
  2021-11-11 20:37 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Mackenzie @ 2021-11-11 20:31 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

There doesn't appear to be an easy way in a Lisp program to determine if
a timer object is active.  Something like (active-timer-p TIMER), or
even (timerp TIMER t), where the t is an &optional argument meaning
"active" (a bit like the LIVE parameter in minibufferp).

Does such a function really not exist, or have I somehow not managed to
find it?

If it doesn't exist, what is the reason?  The command timer-list clearly
manages to know this.  The usefulness of active-timer-p is surely
obvious.  (Well, it is to me, at least.)

At the very least, there could be a section in the Elisp manual
documenting why the function doesn't exist.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-11-12 14:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 20:31 Why doesn't Emacs have an `active-timer-p' command, or why can't I find it? Alan Mackenzie
2021-11-11 20:37 ` Eli Zaretskii
2021-11-11 21:08   ` Alan Mackenzie
2021-11-11 21:24     ` Óscar Fuentes
2021-11-12  2:49       ` Lars Ingebrigtsen
2021-11-12  7:55         ` ๊Unsubscribe Sakesun Roykiattisak
2021-11-12 13:13         ` Why doesn't Emacs have an `active-timer-p' command, or why can't I find it? Rudolf Schlatte
2021-11-12 14:12           ` Filipp Gunbin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).