Subject: bug#11520: 24.1.50; delete-selection-mode conflicts with electric-pair-mode

From: Simon Law <[email-masked]>
Date: Sat, 14 Jul 2012 02:42:31 -0400

On Sat, Jul 14, 2012 at 1:23 AM, Chong Yidong <[email-masked]> wrote:
> Simon Law <[email-masked]> writes:
>
>> $ emacs -Q
>> M-x electric-pair-mode
>> M-x delete-selection-mode
>> ;; Type "a line of text""
>> C-SPC
>> C-a
>> ;; At this point, you should have the line of text selected
>> (
>>
>> Actual result:
>>
>> )(
>
> Fixed in trunk.  Thanks.

Hi Chong,

I tested your fix and it makes electric-pair-mode insert pairs in the
right order now.

But the bug is that delete-selection-mode destroys
electric-pair-mode's auto-wrapping ability. Unfortunately, your fix
does not address that.

Would you like me to come up with a patch that implements my
suggestions above in the BTS?

Thanks,
- Simon