GNU bug report logs -
#14000
24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses
Previous Next
Reported by: Carsten Bormann <cabo <at> tzi.org>
Date: Tue, 19 Mar 2013 19:56:02 UTC
Severity: normal
Found in version 24.3.50
Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 14000 <at> debbugs.gnu.org (full text, mbox):
On Mar 26, 2013, at 03:41, Stefan Monnier <monnier <at> 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
This bug report was last modified 12 years and 56 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.