unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Nikolay Kudryavtsev <nikolay.kudryavtsev@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Marc Soda <marc@soda.fm>,
	73688@debbugs.gnu.org
Subject: bug#73688: [PATCH] electric-pair-mode - preserve balance in conservative mode
Date: Sat, 09 Nov 2024 10:55:35 -0500	[thread overview]
Message-ID: <jwvpln4z9nr.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <6eb1f1cd-80dd-4fec-bebc-9d361321000d@gmail.com> (Nikolay Kudryavtsev's message of "Sat, 9 Nov 2024 13:30:53 +0300")

> Not 100% sure about this, but I'm probably not the first person to think
> that a single predicate design just does not work here in a satisfying
> manner and it should be electric-pair-inhibit-predicates and then the end
> user can tweak them as needed.

But then we'd have to hard-code whether the predicates are AND'ed or
OR'ed together.  In contrast the current design lets you choosing between
`(add-function :before-until ...)` and `(add-function :before-while ...)`.


        Stefan






  reply	other threads:[~2024-11-09 15:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-08  3:10 bug#73688: [PATCH] electric-pair-mode - preserve balance in conservative mode Marc Soda
2024-10-12 12:21 ` Eli Zaretskii
2024-10-12 19:47   ` Marc Soda
2024-10-12 20:36   ` João Távora
2024-10-12 20:43     ` Marc Soda
2024-10-12 23:36       ` João Távora
2024-10-17 16:48 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-26 17:48   ` Marc Soda
2024-10-26 18:47     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-09  9:22       ` Eli Zaretskii
2024-11-09 10:30         ` Nikolay Kudryavtsev
2024-11-09 15:55           ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-11-10 14:28             ` Nikolay Kudryavtsev
2024-11-23 12:22               ` Eli Zaretskii
2024-11-23 17:37                 ` Nikolay Kudryavtsev
2024-11-23 17:29         ` Marc Soda

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvpln4z9nr.fsf-monnier+emacs@gnu.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=73688@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=marc@soda.fm \
    --cc=monnier@iro.umontreal.ca \
    --cc=nikolay.kudryavtsev@gmail.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).