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

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 78053 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: Re: bug#78053: [PATCH] Support strings for electric-pairs.
Date: Mon, 16 Jun 2025 12:26:38 +0300
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Cc: 78053 <at> debbugs.gnu.org,  monnier <at> iro.umontreal.ca
> Date: Sun, 15 Jun 2025 13:54:51 -0600
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> This is a kind of property for pairs (only for strings pairs), that
> >> tells to `electric-pairs` to insert a space before the first pair.
> >> 
> >> I couldn't find a better way to document this in that limited-size tag.
> >
> > If you explain to me what it does, I can try finding more clear
> > wording.
> 
> That must be a list of 3 elements where specifies: pair start, pair end,
> and a non-nil value which specifies to insert an extra space after `pair
> start` was typed.
> 
> Thus, if electric-pair-pairs is set like this:
> (setq electric-pair-pairs '(("/*" " */" t)))
> 
> 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"




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.