From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: electric-pair-mode as a minor mode? Date: Fri, 27 Mar 2015 09:25:49 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427462783 24780 80.91.229.3 (27 Mar 2015 13:26:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Mar 2015 13:26:23 +0000 (UTC) Cc: Yuri D'Elia , emacs-devel@gnu.org To: joaotavora@gmail.com (=?windows-1252?B?Sm/jbyBU4XZvcmE=?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 27 14:26:15 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YbUGw-0005mg-EQ for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2015 14:26:02 +0100 Original-Received: from localhost ([::1]:50218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbUGv-00075s-Iq for ged-emacs-devel@m.gmane.org; Fri, 27 Mar 2015 09:26:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbUGo-00075G-EC for emacs-devel@gnu.org; Fri, 27 Mar 2015 09:25:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbUGl-0005qu-1A for emacs-devel@gnu.org; Fri, 27 Mar 2015 09:25:54 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:61703) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbUGk-0005qe-TT for emacs-devel@gnu.org; Fri, 27 Mar 2015 09:25:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBVg8UBQsLNBIUGA2IN6IRjB9FCQMDgz4Dg3AEqDs X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBVg8UBQsLNBIUGA2IN6IRjB9FCQMDgz4Dg3AEqDs X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114738036" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO pastel.home) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 Mar 2015 09:25:49 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 77FEDD65; Fri, 27 Mar 2015 09:25:49 -0400 (EDT) In-Reply-To: (=?windows-1252?Q?=22Jo=E3o_T=E1v?= =?windows-1252?Q?ora=22's?= message of "Fri, 27 Mar 2015 11:18:48 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184384 Archived-At: >>> When editing regular text, as opposed to code, I also occasionally >>> switch it off because I find it distracting. >> I'm pretty sure that can be done fairly easily, by fixing a few >> concrete cases. > Can you name some? I know that I regularly find myself deleting closing parens in text-modes because I typed (...) and the closing paren inserted when I hit the "(" is not skipped when I hit the ")". It's probably because of something in the context, but you can't assume that parens are properly balanced in text mode. Here's one concrete example I bumped into earlier today: this is a sad example :-( I just wanted to type foo ()) The double close paren was due to electric-pair-mode not skipping the first close-paren when I hit ")", because it took the sad smiley as an open paren. Stefan