GNU bug report logs -
#63620
30.0.50; [Feature Request] run hooks on sleep/wake
Previous Next
Full log
View this message in rfc822 format
> From: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 63620 <at> debbugs.gnu.org,
> michael.albinus <at> gmx.de
> Date: Wed, 05 Feb 2025 13:21:41 -0500
>
> >> According the the elisp manual special events "cannot be unread with
> >> ‘unread-command-events’".
> > Oh, right! So pushing to `unread-command-events` will only work if the
> > binding is made in a normal map. That's not the end of the world, but
> > it's not ideal. E.g. it doesn't really make sense to have the behavior
> > depend on the mode of the current buffer, and it seems undesirable to
> > fail to run the binding if you happened to type `C-x` just
> > before sleeping.
>
> Maybe a hook is not such a bad idea after all.
But then how would platforms where these events come from the
window-system call that hook? We'd need two different mechanisms for
the same feature, and two different ways of calling user-defined
functions when the event comes in. Or what am I missing?
This bug report was last modified 130 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.