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 10:21:58 -0400
>> That's not anything new, and we have ways of handling these situations,
>> as Stefan pointed out, and as you can see in the source code.
> What Stefan suggested was no longer using self-insert-command.

I look at it as using `self-insert-command` *more*.

> That is hardly practical in CC Mode.

I don't see why not.  My best guess is that you find it inconvenient to
make the code work for Emacsen both with and without
`post-self-insert-hook`, but that seems easy enough to fix with
a (boundp 'post-self-insert-hook) or a version test.
[ Or even simpler by dropping support for Emacs<24, which recently
  turned 15, BTW. 🙂 ]

> I'm not happy about the state of c-electric-paren.

It should die and be replaced by the existing `electric-*-mode`s.


        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.