bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38406: 27.0.50; post-self-insert-hook does not hold its contract in


From: Alan Mackenzie
Subject: bug#38406: 27.0.50; post-self-insert-hook does not hold its contract in cc-mode derived modes
Date: Mon, 2 Dec 2019 18:37:31 +0000
User-agent: Mutt/1.10.1 (2018-07-13)

Hello, Eli.

On Sun, Dec 01, 2019 at 20:03:38 +0200, Eli Zaretskii wrote:
> > Date: Sun, 1 Dec 2019 15:58:42 +0000
> > From: Alan Mackenzie <acm@muc.de>
> > Cc: 38406@debbugs.gnu.org

> > Why not use post-command-hook here instead?

> I don't know what's Ivan's reason, but I know mine: post-command-hook
> runs much more frequently (since self-insert-command's are a small
> subset of commands in general), and therefore its use is much more
> likely to make Emacs less responsive.  E.g., cursor motion commands
> will not call post-self-insert-hook.

What we could do with here is a post-change-command-functions, something
a bit like after-change-functions in what triggers it, and a bit like
post-command-hook in when it gets triggered.

Of course, one could say that we have too many hooks already .....

-- 
Alan Mackenzie (Nuremberg, Germany).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]