GNU bug report logs - #77224
[PATCH] New minor mode 'cursor-indicators-mode'

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Sun, 23 Mar 2025 22:59:03 UTC

Severity: normal

Tags: patch

Full log


Message #203 received at 77224 <at> debbugs.gnu.org (full text, mbox):

From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Daniel Mendler <mail <at> daniel-mendler.de>, juri <at> linkov.net,
 77224 <at> debbugs.gnu.org
Subject: Re: bug#77224: [PATCH] New minor mode 'cursor-indicators-mode'
Date: Sat, 29 Mar 2025 11:56:52 -0600
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

> How long is the post-command-hook list in your production sessions?
> Should we poll users to give their data?  Just yesterday someone
> complained on Reddit that Emacs is too slow, and I have no doubt that
> features that use post-command-hook are at least part of the reason if
> not _the_ reason.

this is what i have in every prog mode:

(eldoc-schedule-timer
 treesit-fold-indicators--post-command
 jit-lock--antiblink-post-command
 fill-indicator--set-warning
 indent-bars--highlight-current-depth
 goggles--post-command
 corfu--auto-post-command
 yas--post-command-handler
 whitespace-post-command-hook
 t
 eldoc-box--follow-cursor)

Most of these functions uses this hook for run code when cursor changes
position since there is not a hook for that (yet).

I think there should be a entry in etc/TODO for hooks when:
 - buffer content changes
 - cursor changes position
 - undo (and redo) commands are used.
 - rendering/displaying frame content (thus the code would not run for every function).

This would reduce post-command-hook usage and help Emacs ecosystem a lot.

[Message part 2 (text/html, inline)]
[Message part 3 (text/plain, inline)]

-- 
                                          - E.G via GNU Emacs and Org.

This bug report was last modified 64 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.