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

From: Chong Yidong <[email-masked]>
Date: Sun, 15 Jul 2012 22:39:56 +0800

Simon Law <[email-masked]> writes:

> 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.

Hmm, I guess I misunderstood the bug.  I'll re-open it.

Trying to work up a patch that does the right thing is not so
straightforward, though, as electric-pair-post-self-insert-function does
not have a simple triggering condition.