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: Workaround Date: Sat, 19 May 2012 18:41:23 -0400 Message-ID: <87txzb23qk.fsf@sfllaw.ca> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1337467361 1454 80.91.229.3 (19 May 2012 22:42:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 May 2012 22:42:41 +0000 (UTC) To: 11520@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 20 00:42:40 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 1SVsMB-000073-7P for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 May 2012 00:42:39 +0200 Original-Received: from localhost ([::1]:48387 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVsMA-0002pa-Jm for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2012 18:42:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVsM8-0002pM-1q for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 18:42:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVsM6-000518-Es for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 18:42:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVsM6-000513-Bl for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 18:42:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SVsMY-0007RN-GJ for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 18:43:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Simon Law Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 May 2012 22:43: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.133746734228553 (code B ref 11520); Sat, 19 May 2012 22:43:02 +0000 Original-Received: (at 11520) by debbugs.gnu.org; 19 May 2012 22:42:22 +0000 Original-Received: from localhost ([127.0.0.1]:34809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SVsLt-0007QT-Vn for submit@debbugs.gnu.org; Sat, 19 May 2012 18:42:22 -0400 Original-Received: from mail-ob0-f172.google.com ([209.85.214.172]:64034) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SVsLa-0007Pe-3g for 11520@debbugs.gnu.org; Sat, 19 May 2012 18:42:21 -0400 Original-Received: by obbeh20 with SMTP id eh20so6085749obb.3 for <11520@debbugs.gnu.org>; Sat, 19 May 2012 15:41:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :x-gm-message-state; bh=Iaj0Ppnf+DrDlkWmAyfuFvvtSEdng1njDY9Alr3OTBY=; b=GXH8194r7wOQ+ejQ3cBcqKCryvoMeMf1pSGp5lULPD3rrl8qVh3Qk4Lrg6R0df2Ydz VZROavPCKq8n5aHzd3RMKaVPnD9Y7qP2LtwOO/PPOqYmX5NX6xAvihch6ktTcJ39vYS9 Ea5/9TIFtNMvkWpU6bjPOfpGqMT2Oeq5ETaVai9yBBWbZ0kHXt2ZCuKAQbJayxPQJ41n kNeDKXzJmaZLNn7Dihy4T2jVelQalH0duaWvoBm73575kZ2D1CrIh1eWRjTqojr03FlS Hg7jjjpEwenD3ksHduS8W2Iio60uHYpuwYTr/ZJMCYcIdhtwDrcZ41Xb2oSpRIQW95yz 0yPw== Original-Received: by 10.50.169.65 with SMTP id ac1mr119025igc.54.1337467287125; Sat, 19 May 2012 15:41:27 -0700 (PDT) Original-Received: from boson ([184.175.19.162]) by mx.google.com with ESMTPS id nh8sm13296635igc.1.2012.05.19.15.41.25 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 May 2012 15:41:26 -0700 (PDT) X-Gm-Message-State: ALoCoQkdTocQFruxT5lYxSl4dtIHud4aXDvkOq0cAAYVOrkdE+2ERaUrAuEJ6wSf99eSIKZcuxge 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:60229 Archived-At: I use the following defadvice as a hack to workaround this bug: (defadvice delete-active-region (around electric-pair-or-delete-active-region activate) "Prevent delete-active-region from clobbering electric-pair-mode." (unless (and electric-pair-mode (or (eq ?\( (char-syntax last-command-event)) (assq last-command-event electric-pair-pairs))) ad-do-it) t)