From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Bormann Newsgroups: gmane.emacs.bugs Subject: bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses Date: Tue, 26 Mar 2013 08:27:31 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1364282874 25090 80.91.229.3 (26 Mar 2013 07:27:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2013 07:27:54 +0000 (UTC) Cc: 14000@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 08:28:19 2013 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 1UKOIs-0000CO-K6 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 08:28:18 +0100 Original-Received: from localhost ([::1]:44311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKOIU-00048Z-Fh for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 03:27:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKOIP-00048E-Oh for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 03:27:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKOIM-0006pn-PO for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 03:27:49 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKOIM-0006pe-MA for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 03:27:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UKOKZ-000198-9T for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 03:30:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carsten Bormann Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Mar 2013 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14000 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14000-submit@debbugs.gnu.org id=B14000.13642829974368 (code B ref 14000); Tue, 26 Mar 2013 07:30:02 +0000 Original-Received: (at 14000) by debbugs.gnu.org; 26 Mar 2013 07:29:57 +0000 Original-Received: from localhost ([127.0.0.1]:45512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKOKQ-00018M-Iy for submit@debbugs.gnu.org; Tue, 26 Mar 2013 03:29:56 -0400 Original-Received: from mailhost.informatik.uni-bremen.de ([134.102.201.18]:42849 helo=informatik.uni-bremen.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKOKO-00018D-3y for 14000@debbugs.gnu.org; Tue, 26 Mar 2013 03:29:53 -0400 X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de Original-Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.4/8.14.4) with ESMTP id r2Q7RWup015907; Tue, 26 Mar 2013 08:27:32 +0100 (CET) Original-Received: from [192.168.217.105] (p54893DD9.dip.t-dialin.net [84.137.61.217]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 0891C3720; Tue, 26 Mar 2013 08:27:31 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1503) 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.x 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:72906 Archived-At: On Mar 26, 2013, at 03:41, Stefan Monnier = wrote: >> In electric-pair-mode, I type "((" >> I get "(()" >> I should get "(())" >> Fix below. >=20 > Actually, it's not a bug but a feature. There's no way to know for = sure > when pairing is desired and when it's not, and as an electric-pair = user > I prefer electric-pair to err on the conservative side. OK, I maybe should have suggested adding a preference. But if you live in a world of paired parentheses (and I thought = Emacs-Lispers were!) you want to add them in pairs, always. > This said, it would be nice to also accommodate users with different > usage patterns. If you look at the many other pairing packages, they > show a whole bunch of slightly different behaviors, it would be nice = to > try and see how we can "merge" them. I haven't done the work of surveying pairing packages. I just happened to pick up electric-pair-mode from a specific package (I = forget which), and since it is a global thing, it immediately started = affecting all my buffers. It is nice enough, so I kept it on. =20 But the behavior I was fixing here is seriously jarring (as in *always* = wrong) in my usage. Gr=FC=DFe, Carsten