From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Law Newsgroups: gmane.emacs.bugs Subject: bug#11520: 24.1.50; delete-selection-mode conflicts with electric-pair-mode Date: Mon, 11 Jun 2012 17:24:14 -0400 Message-ID: References: <52696FFEBE154517A60576312AEEEE22@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339449931 8203 80.91.229.3 (11 Jun 2012 21:25:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2012 21:25:31 +0000 (UTC) To: 11520@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 11 23:25:29 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 1SeC77-0002Zq-1o for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jun 2012 23:25:29 +0200 Original-Received: from localhost ([::1]:39392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeC76-0004tA-Sw for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Jun 2012 17:25:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeC74-0004st-0S for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2012 17:25:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeC72-0007aM-5Z for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2012 17:25:25 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeC72-0007aF-29 for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2012 17:25:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SeC9Z-0005Tl-KG for bug-gnu-emacs@gnu.org; Mon, 11 Jun 2012 17:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simon Law Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Jun 2012 21:28:01 +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.133945003621009 (code B ref 11520); Mon, 11 Jun 2012 21:28:01 +0000 Original-Received: (at 11520) by debbugs.gnu.org; 11 Jun 2012 21:27:16 +0000 Original-Received: from localhost ([127.0.0.1]:38362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeC8q-0005So-Kd for submit@debbugs.gnu.org; Mon, 11 Jun 2012 17:27:16 -0400 Original-Received: from mail-bk0-f44.google.com ([209.85.214.44]:55631) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SeC8n-0005Sg-Ve for 11520@debbugs.gnu.org; Mon, 11 Jun 2012 17:27:14 -0400 Original-Received: by bkty8 with SMTP id y8so3940485bkt.3 for <11520@debbugs.gnu.org>; Mon, 11 Jun 2012 14:24:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding :x-gm-message-state; bh=PM2zBPBmI7ARZV0OK/ui4J83pdJZcoM8M1c4lGrQ0EM=; b=aQiroyxlqXwxLILtne36ZHa5Gqo1LXmsD6TNo9ykEKR5QL6XAs9UQuVl7WD61TWsCu Z8xU0olEieSnY+tXHCiCHPwDRmbf511Pja4u+vf/FWB3mCsNiNmhBtyT74LfPlfRhkWU DkdvXiEeofugOgRq+PodEXh47qgTCFmMln6wyM0yptQ0R39v/aVEsMtka1zTCmnoaQY1 Tu8W+9wftQEPhA1GFfwVIZrVIbBspzBtUQZU0Wv7yGRJD4r3qiUXrcybo7nand6PwCrv BHD4OqTUYDJHCkylojCruoBmJD+7KNOIi+DSh+1TyOjNk4eQGNLf3l1wICxRlFDOqZ2w DnHQ== Original-Received: by 10.205.117.3 with SMTP id fk3mr11097052bkc.136.1339449874579; Mon, 11 Jun 2012 14:24:34 -0700 (PDT) Original-Received: by 10.204.224.200 with HTTP; Mon, 11 Jun 2012 14:24:14 -0700 (PDT) X-Originating-IP: [38.108.74.28] In-Reply-To: X-Gm-Message-State: ALoCoQnLmEl16wKDTadR62+PKmKgjKz3s801+bEXj/sV76YxbUKPl71aEWA8aCY9rPfCGF/7oOsg 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:60876 Archived-At: I now use the following workaround, in order to preserve string-wrapping behaviour: (defadvice delete-active-region (around electric-pair-or-delete-active-regi= on activate) "Prevent delete-active-region from clobbering electric-pair-mode." (unless (and electric-pair-mode (or (memq (char-syntax last-command-event) '(?\( ?\")) (assq last-command-event electric-pair-pairs))) ad-do-it) t) --=20 Cheers, Simon -=C2=A0http://ca.linkedin.com/in/sfllaw/