all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Possible support for buffer local idle timers?
@ 2021-09-20 13:49 Campbell Barton
  2021-09-20 15:30 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Campbell Barton @ 2021-09-20 13:49 UTC (permalink / raw)
  To: emacs-devel

Hi, I was wondering if buffer-local idle timers had been considered.

The motivation for this feature is that a buffer-local minor mode may
want to perform an action when emacs is idle.

Currently the only convenient way to do this is to add a global timer
that checks the buffer and it's minor modes.

This has the reasonably big down-side that disabling the idle-timer
requires checking if any buffer currently uses this minor mode,
some packages don't bother and leave it turned on, e.g: [0], so
disabling the mode never turns off the idle timer.

It seems like elisp-only buffer-local idle-timers could be implemented
using something similar to this solution [1],
the main difference would be that the global-idle-timers would be
shared between users with matching delays.

Has this been considered or is there a reason this wouldn't be
acceptable as part of Emacs?

[0]: https://github.com/nonsequitur/idle-highlight-mode/blob/master/idle-highlight-mode.el
[1]: https://emacs.stackexchange.com/a/13275/2418



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-09-25  7:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-20 13:49 Possible support for buffer local idle timers? Campbell Barton
2021-09-20 15:30 ` Eli Zaretskii
2021-09-20 15:50   ` Campbell Barton
2021-09-20 16:08     ` Eli Zaretskii
2021-09-21  0:36       ` Campbell Barton
2021-09-21  6:07         ` Eli Zaretskii
2021-09-21  6:16           ` Lars Ingebrigtsen
2021-09-21 10:19           ` Campbell Barton
2021-09-21 10:43             ` Eli Zaretskii
2021-09-25  7:26               ` Campbell Barton

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.