GNU bug report logs - #78053
[PATCH] Support strings for electric-pairs.

Previous Next

Package: emacs;

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

Date: Fri, 25 Apr 2025 00:31:01 UTC

Severity: normal

Tags: patch

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Subject: bug#78053: closed (Re: bug#78053: [PATCH] Support strings for
 electric-pairs.)
Date: Sat, 21 Jun 2025 09:27:06 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#78053: [PATCH] Support strings for electric-pairs.

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 78053 <at> debbugs.gnu.org.

-- 
78053: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78053
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 78053-done <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: Re: bug#78053: [PATCH] Support strings for electric-pairs.
Date: Sat, 21 Jun 2025 12:26:37 +0300
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Cc: 78053 <at> debbugs.gnu.org,  monnier <at> iro.umontreal.ca
> Date: Mon, 16 Jun 2025 18:56:33 -0600
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> [...]
> 
> >> 
> >> After the pair start was typed it expands to this:
> >> /* | */
> >>    ^ cursor
> >
> > OK, but this should be first described in the doc string, which should
> > include the full documentation of the supported forms of the value.
> >
> > As for the :tag text how about the below?
> >
> >   "Strings, plus insert SPC after first string"
> 
> Thanks, It sounds better.
> 
> I've now updated the patch (plus added some new ert tests).

Thanks, installed (with some minor fixes in the commit log message) on
the master branch.

Closing the bug report.

[Message part 3 (message/rfc822, inline)]
From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Support strings for electric-pairs.
Date: Thu, 24 Apr 2025 18:30:10 -0600
[Message part 4 (text/plain, inline)]
Tags: patch

As discussed in bug#77823, this feature bring support for
using strings as pairs in `electric-pair-mode', the advantage is that
this can be used for: Auto-close block comments, close conditional
constructs such as `case esac' from bash and whatever.

This is currently a working prototype (only inserts the pairs).
I would like to hear some comments or suggestions of this implementation.

Thanks.
[0001-Support-strings-for-electric-pairs.-bug.patch (text/patch, attachment)]
[Message part 6 (text/plain, inline)]
-- 
                                          - E.G via GNU Emacs and Org.

This bug report was last modified 25 days ago.

Previous Next


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