From: Eli Zaretskii <eliz@gnu.org>
To: Ergus <spacibba@aol.com>
Cc: 53661@debbugs.gnu.org
Subject: bug#53661: 29.0.50; electric-pair-mode not respecting electric-pair-inhibit-predicate.
Date: Mon, 31 Jan 2022 18:41:59 +0200 [thread overview]
Message-ID: <83iltz97s8.fsf@gnu.org> (raw)
In-Reply-To: <87fsp4eygw.fsf@aol.com> (bug-gnu-emacs@gnu.org)
> Date: Mon, 31 Jan 2022 16:06:39 +0100
> From: Ergus via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> When adding new pairs to `electric-pair-pairs' the
> `electric-pair-inhibit-predicate' variable is not respected.
>
> Looking at the elect-pair file it seems to be related with:
> `electric-pair-post-self-insert-function' that hard-coded the condition
> to call `electric-pair-inhibit-predicate' with:
>
> (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?
next prev parent reply other threads:[~2022-01-31 16:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87fsp4eygw.fsf.ref@aol.com>
2022-01-31 15:06 ` bug#53661: 29.0.50; electric-pair-mode not respecting electric-pair-inhibit-predicate Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-31 16:41 ` Eli Zaretskii [this message]
2022-01-31 17:29 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-31 18:04 ` Eli Zaretskii
2022-01-31 19:20 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-31 19:28 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83iltz97s8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=53661@debbugs.gnu.org \
--cc=spacibba@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.