GNU bug report logs - #38406
27.0.50; post-self-insert-hook does not hold its contract in cc-mode derived modes

Previous Next

Package: emacs;

Reported by: yyoncho <yyoncho <at> gmail.com>

Date: Wed, 27 Nov 2019 20:01:01 UTC

Severity: normal

Found in version 27.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: yyoncho <at> gmail.com, 38406 <at> debbugs.gnu.org
Subject: Re: bug#38406: 27.0.50;
 post-self-insert-hook does not hold its contract in cc-mode derived
 modes
Date: Sun, 01 Dec 2019 20:03:38 +0200
> Date: Sun, 1 Dec 2019 15:58:42 +0000
> From: Alan Mackenzie <acm <at> muc.de>
> Cc: 38406 <at> 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.




This bug report was last modified 5 years and 168 days ago.

Previous Next


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