From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#11520: 24.1.50; delete-selection-mode conflicts with electric-pair-mode Date: Sun, 15 Jul 2012 22:39:56 +0800 Message-ID: <87a9z19jgj.fsf@gnu.org> References: <87ipdqx6e4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1342363280 23639 80.91.229.3 (15 Jul 2012 14:41:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2012 14:41:20 +0000 (UTC) Cc: 11520@debbugs.gnu.org To: Simon Law Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 15 16:41:20 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqQ0d-0005RI-D6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jul 2012 16:41:19 +0200 Original-Received: from localhost ([::1]:43187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqQ0c-0003Mh-JM for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Jul 2012 10:41:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42541) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqQ0Y-0003ME-Sz for bug-gnu-emacs@gnu.org; Sun, 15 Jul 2012 10:41:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqQ0Y-0002St-0K for bug-gnu-emacs@gnu.org; Sun, 15 Jul 2012 10:41:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqQ0X-0002So-TC for bug-gnu-emacs@gnu.org; Sun, 15 Jul 2012 10:41:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SqQ6A-0005KB-Eb for bug-gnu-emacs@gnu.org; Sun, 15 Jul 2012 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Jul 2012 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11520 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11520-submit@debbugs.gnu.org id=B11520.134236356519684 (code B ref 11520); Sun, 15 Jul 2012 14:47:02 +0000 Original-Received: (at 11520) by debbugs.gnu.org; 15 Jul 2012 14:46:05 +0000 Original-Received: from localhost ([127.0.0.1]:42878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqQ5A-00056y-DS for submit@debbugs.gnu.org; Sun, 15 Jul 2012 10:46:02 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:49774) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SqQ56-000553-0c for 11520@debbugs.gnu.org; Sun, 15 Jul 2012 10:45:57 -0400 Original-Received: from cm162.gamma80.maxonline.com.sg ([202.156.80.162]:34035 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SqPzQ-0000xK-8r; Sun, 15 Jul 2012 10:40:05 -0400 In-Reply-To: (Simon Law's message of "Sat, 14 Jul 2012 02:42:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61958 Archived-At: Simon Law 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.