| Newsgroups |
gmane.emacs.help |
| Message-ID |
<[email protected]> |
On 2026-03-05, at 10:28, Michael Heerdegen <[email protected]> wrote:
> [email protected] writes:
>
>> That's interesting. I have a feeling that it's a bit convoluted and
>> hackish, but then maybe so is my idea of "resetting" the idle time.
>> Still, I think that a "reset" like this may be more elegant and simpler.
>> WDYT? Is `(setq unread-command-events nil)' a good idea, then?
>
> Idle timers are the interface provided exactly for cases like yours.
> Manipulating `unread-command-events' is the hack.
>
> The difference? The second option is guaranteed to hurt if you choose
> to use it for a second time. Of course, only after you had forgotten
> about the first use.
>
> Accumulate such things in your setup and get crazy. That's it.
Thanks, that makes total sense - I didn't think about it!
--
Marcin Borkowski
https://mbork.pl