From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?
Date: Thu, 11 Nov 2021 21:08:52 +0000 [thread overview]
Message-ID: <YY2GZAASGPBR+RP8@ACM> (raw)
In-Reply-To: <83lf1uzaw8.fsf@gnu.org>
Hello, Eli.
On Thu, Nov 11, 2021 at 22:37:43 +0200, Eli Zaretskii wrote:
> > Date: Thu, 11 Nov 2021 20:31:24 +0000
> > From: Alan Mackenzie <acm@muc.de>
> > There doesn't appear to be an easy way in a Lisp program to determine if
> > a timer object is active.
> What is an "active timer", and how does it differ from a non-active
> one?
An active timer is one which will trigger its timer function at the
appropriate time.
A non-active timer is one which will not trigger any timer function -
for example, a non-repeating timer which has already triggered.
timerp returns t for both of these objects.
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2021-11-11 21:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YY2GZAASGPBR+RP8@ACM \
--to=acm@muc.de \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).