From: Carsten Bormann <cabo@tzi.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 14000@debbugs.gnu.org
Subject: bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses
Date: Tue, 26 Mar 2013 08:27:31 +0100 [thread overview]
Message-ID: <EF5CEB5C-B604-487F-B776-2D2386C9042C@tzi.org> (raw)
In-Reply-To: <jwvehf2j3j8.fsf-monnier+emacs@gnu.org>
On Mar 26, 2013, at 03:41, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> In electric-pair-mode, I type "(("
>> I get "(()"
>> I should get "(())"
>> Fix below.
>
> Actually, it's not a bug but a feature. There's no way to know for sure
> when pairing is desired and when it's not, and as an electric-pair user
> I prefer electric-pair to err on the conservative side.
OK, I maybe should have suggested adding a preference.
But if you live in a world of paired parentheses (and I thought Emacs-Lispers were!) you want to add them in pairs, always.
> This said, it would be nice to also accommodate users with different
> usage patterns. If you look at the many other pairing packages, they
> show a whole bunch of slightly different behaviors, it would be nice to
> try and see how we can "merge" them.
I haven't done the work of surveying pairing packages.
I just happened to pick up electric-pair-mode from a specific package (I forget which), and since it is a global thing, it immediately started affecting all my buffers. It is nice enough, so I kept it on.
But the behavior I was fixing here is seriously jarring (as in *always* wrong) in my usage.
Grüße, Carsten
next prev parent reply other threads:[~2013-03-26 7:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 17:59 bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses Carsten Bormann
2013-03-26 2:41 ` Stefan Monnier
2013-03-26 7:27 ` Carsten Bormann [this message]
2013-03-26 13:18 ` bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nestedparentheses Drew Adams
2013-03-26 13:32 ` Carsten Bormann
2013-03-26 14:20 ` Drew Adams
2013-03-26 16:48 ` bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses Stefan Monnier
2013-04-01 13:28 ` Stefan Monnier
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=EF5CEB5C-B604-487F-B776-2D2386C9042C@tzi.org \
--to=cabo@tzi.org \
--cc=14000@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/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).