GNU bug report logs - #53661
29.0.50; electric-pair-mode not respecting electric-pair-inhibit-predicate.

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Mon, 31 Jan 2022 15:08:01 UTC

Severity: normal

Found in version 29.0.50

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ergus <spacibba <at> aol.com>
Cc: 53661 <at> debbugs.gnu.org
Subject: bug#53661: 29.0.50; electric-pair-mode not respecting electric-pair-inhibit-predicate.
Date: Mon, 31 Jan 2022 20:04:02 +0200
> Date: Mon, 31 Jan 2022 18:29:31 +0100
> From: Ergus <spacibba <at> aol.com>
> Cc: 53661 <at> debbugs.gnu.org
> 
> >> (memq syntax '(?\( ?\" ?\$))
> >>
> >> So, for other pairs, the function electric-pair-inhibit-predicate is
> >> never called.
> >
> >The above condition looks at the _syntax_ of a character, not at the
> >character itself.  So what do you find "hard-coded" there,and what
> >kind of pairs of characters did you want to add that don't have one of
> >those syntaxes?
> 
> Hi Eli:
> 
> I wanted to add "<>" so I added to my init:
> 
> (add-to-list 'electric-pair-pairs '(?< . ?>))

And it didn't work because of the hard-coded syntaxes?

What is the syntax of ?< in the mode where you wanted to add that?




This bug report was last modified 3 years and 136 days ago.

Previous Next


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