From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nestedparentheses Date: Tue, 26 Mar 2013 06:18:43 -0700 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1364303994 4289 80.91.229.3 (26 Mar 2013 13:19:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2013 13:19:54 +0000 (UTC) Cc: 14000@debbugs.gnu.org To: "'Carsten Bormann'" , "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 14:20: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 1UKTnX-0002jl-Cg for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 14:20:19 +0100 Original-Received: from localhost ([::1]:56470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKTn9-000500-BP for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 09:19:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKTn5-0004zj-Qn for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 09:19:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKTmx-0008SN-GB for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 09:19:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKTmx-0008SB-Bf for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 09:19:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UKTpB-0002Kf-Ng for bug-gnu-emacs@gnu.org; Tue, 26 Mar 2013 09:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Mar 2013 13:22:01 +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.13643040758905 (code B ref 14000); Tue, 26 Mar 2013 13:22:01 +0000 Original-Received: (at 14000) by debbugs.gnu.org; 26 Mar 2013 13:21:15 +0000 Original-Received: from localhost ([127.0.0.1]:45856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKToQ-0002Ja-T1 for submit@debbugs.gnu.org; Tue, 26 Mar 2013 09:21:15 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:48417) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKToN-0002JR-UG for 14000@debbugs.gnu.org; Tue, 26 Mar 2013 09:21:13 -0400 Original-Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r2QDIoim018472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Mar 2013 13:18:51 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r2QDInwM022468 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Mar 2013 13:18:50 GMT Original-Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id r2QDInO8016777; Tue, 26 Mar 2013 08:18:49 -0500 Original-Received: from dradamslap1 (/10.159.80.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 26 Mar 2013 06:18:48 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac4p83BoGJRKQUNeTEqz3n/g400GhwALfCdw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: acsinet22.oracle.com [141.146.126.238] 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:72911 Archived-At: > But if you live in a world of paired parentheses (and I > thought Emacs-Lispers were!) Mostly, yes. > you want to add them in pairs, always. No, not at all. Some people do, but my guess would be that they are a minority. Probably most if not all who live in a world of paired parens have tried behavior such as electric pairing, but I'd guess that relatively few who tried it have stayed with it. Perhaps it's a bit like the use of the so-called "structured" editors that were pushed by some in the 1980s: they pretty much forced you to only perform actions that kept things well-formed, always - like filling out forms. Real users hated them, for the most part. What they wanted was instead the typical best-of-both-worlds behavior that Emacs offered: you can do anything at all, but you can also easily ask the editor to check text for well-formedness etc. IOW, check on-demand, not preformed or forced form. Not that electric pairing prevents you from deleting parens, so they are no longer necessarily paired (that would really be like those structured editors), but the analogy is not too off-base. Personally, I use `show-paren-mode' (and `blink-matching-paren'). But I don't program in C etc., and I suppose that the language used might make some difference wrt preference. Wrt right parens, some Lisp dialects (e.g. Franz Lisp) have allowed you to use `]' to act as a sufficient number of `)' to reach an even number (balance). For quick interactive evaluation it could sometimes be handy. E.g. (setq foo '((a) (((b (c d].