GNU bug report logs - #23298
25.0.92; electric-pair-delete-pair doesn't check if parens are balanced

Previous Next

Package: emacs;

Reported by: Mohammed Sadik <sadiq <at> sadiqpk.org>

Date: Sat, 16 Apr 2016 01:40:02 UTC

Severity: normal

Found in version 25.0.92

Full log


Message #14 received at 23298 <at> debbugs.gnu.org (full text, mbox):

From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, Mohammed Sadik <sadiq <at> sadiqpk.org>,
 23298 <at> debbugs.gnu.org
Subject: Re: bug#23298: 25.0.92; electric-pair-delete-pair doesn't check if
 parens are balanced
Date: Fri, 14 Aug 2020 12:37:42 +0300
Stefan Kangas <stefan <at> marxist.se> writes:

>> Or a simpler example:
>>
>> (foo ()
>>
>> If you put point after the next-to-last character, then hitting DEL will
>> delete the last pair:
>>
>> (foo
>>
>> But...  I don't think this is a bug?  electric-pair-mode doesn't promise
>> to keep things balanced globally, but delete the matching pair if you
>> delete an opening parenthesis?  I think.
>>
>> Does that tally with what everybody else would expect?
>
> Do we have any electric-pair-mode users who could comment on this?

I for one wish electric-pair-mode to leave balanced closing parenthesis
in this case.




This bug report was last modified 4 years and 304 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.