[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23298: 25.0.92; electric-pair-delete-pair doesn't check if parens ar
From: |
Andrii Kolomoiets |
Subject: |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) |
Stefan Kangas <stefan@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.