Re: How to reset the idle timer?
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
> From: [email protected] > Cc: [email protected] > Date: Mon, 16 Mar 2026 17:32:31 +0100 > > On 2026-03-12, at 13:52, Stefan Monnier <[email protected]> wrote: > > >>> This is actually an ideal use-case for Daniel Colascione's recent > >>> suggestion to change `(run-with-idle-timer N ...)` to mean > >>> that N starts counting *now* rather than starting counting when the > >>> current idle period started. > >> That is fascinating! Is there a chance this suggestion will be > >> implemented soon? > > > > I don't know anyone who's working on it, no. > > > >> I don't see any drawbacks (of course, I probably miss something). > > > > Well, it's a change, so it would inevitably introduce breakage unless > > it comes packaged as a new function or new argument values that make it > > clear which behavior is requested. > > True, although I'd be /extremely/ curious to learn about a use-case > depending on the current behavior so much that this change could break > it! If an idle timer run with (run-with-idle-timer 10 ...) would start after 5 or 15 seconds of idleness instead of after 10, would you consider that a breakage? IOW, is the argument SECS of run-with-idle-timer of _any_ importance and should be obeyed, or can it be just ignored and some other random value of idleness used instead?