[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Why doesn't Emacs have an `active-timer-p' command, or why can't I find
From: |
Alan Mackenzie |
Subject: |
Why doesn't Emacs have an `active-timer-p' command, or why can't I find it? |
Date: |
Thu, 11 Nov 2021 20:31:24 +0000 |
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).
- Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?,
Alan Mackenzie <=
- Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?, Eli Zaretskii, 2021/11/11
- Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?, Alan Mackenzie, 2021/11/11
- Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?, Óscar Fuentes, 2021/11/11
- Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?, Lars Ingebrigtsen, 2021/11/11
- ๊Unsubscribe, Sakesun Roykiattisak, 2021/11/12
- Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?, Rudolf Schlatte, 2021/11/12
- Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?, Filipp Gunbin, 2021/11/12