GNU bug report logs - #14000
24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Carsten Bormann <cabo <at> tzi.org>
Cc: 14000 <at> debbugs.gnu.org
Subject: bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses
Date: Mon, 25 Mar 2013 22:41:36 -0400
> 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.

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.


        Stefan




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.