emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I f


From: Lars Ingebrigtsen
Subject: Re: Why doesn't Emacs have an `active-timer-p' command, or why can't I find it?
Date: Fri, 12 Nov 2021 03:49:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Óscar Fuentes <ofv@wanadoo.es> writes:

> An implementation would be
>
> (defun timer-active-p (timer)
>   (timer--check timer)
>   (or (memq timer timer-list))
>       (memq timer timer-idle-list))

Sounds useful to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]