From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#14000: 24.3.50; electric-pair-post-self-insert-function does not handle nested parentheses Date: Mon, 25 Mar 2013 22:41:36 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364265718 18175 80.91.229.3 (26 Mar 2013 02:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2013 02:41:58 +0000 (UTC) Cc: 14000@debbugs.gnu.org To: Carsten Bormann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 03:42:24 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 1UKJqC-0001Fz-1J for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 03:42:24 +0100 Original-Received: from localhost ([::1]:44800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKJpo-0004Z0-7N for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2013 22:42:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKJpg-0004Ye-Ie for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 22:41:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKJpb-0003LG-4A for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 22:41:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKJpb-0003L1-0t for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 22:41:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UKJrm-0002Z4-Mi for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2013 22:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Mar 2013 02:44: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.13642658399842 (code B ref 14000); Tue, 26 Mar 2013 02:44:02 +0000 Original-Received: (at 14000) by debbugs.gnu.org; 26 Mar 2013 02:43:59 +0000 Original-Received: from localhost ([127.0.0.1]:45358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKJrj-0002Yh-02 for submit@debbugs.gnu.org; Mon, 25 Mar 2013 22:43:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:41649) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UKJre-0002YW-4j for 14000@debbugs.gnu.org; Mon, 25 Mar 2013 22:43:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxLSu/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2OLoJcA6R6gV6Caik X-IPAS-Result: Av8EABK/CFFFxLSu/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCwsOJhIUGA0kiB4GwS2OLoJcA6R6gV6Caik X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="5776234" Original-Received: from 69-196-180-174.dsl.teksavvy.com (HELO pastel.home) ([69.196.180.174]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Mar 2013 22:41:34 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 69C1967AC0; Mon, 25 Mar 2013 22:41:36 -0400 (EDT) In-Reply-To: (Carsten Bormann's message of "Tue, 19 Mar 2013 18:59:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.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.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:72899 Archived-At: > In electric-pair-mode, I type "((" > I get "(()" > I should get "(())" > Fix below. 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. 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. Stefan