GNU bug report logs - #79047
Add some multi-character pairs to some major modes.

Previous Next

Package: emacs;

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

Date: Sat, 19 Jul 2025 02:05:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 79047 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, jm <at> pub.pink, eg642616 <at> gmail.com
Subject: bug#79047: Add some multi-character pairs to some major modes.
Date: Fri, 25 Jul 2025 09:28:15 -0400
>> Thus electric-pair-mode doesn't violate any conventions.
> self-insert-command, called from Lisp, is broken.  There is no usable
> definition of its functionality.  So far, there is no competing analysis
> to mine as to how it's broken.  Stefan's "solution" is not to use
> self-insert-command.

Your code doesn't want to use `self-insert-command`, instead it wants to
do mimic `self-insert-command` but with some changes.
That's exactly what `post-self-insert-hook` is for.

> So it's looking like the ugly workarounds in c-electric-paren to use
> self-insert-command will have to remain.  I'm disappointed about this.

Not for lack of an alternative, tho.


        Stefan





This bug report was last modified 1 day ago.

Previous Next


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