From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [patch] make electric-pair-mode smarter/more useful Date: Sat, 07 Dec 2013 04:36:53 +0200 Message-ID: <87d2l9wfne.fsf@yandex.ru> References: <87haalh806.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1386383839 30124 80.91.229.3 (7 Dec 2013 02:37:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Dec 2013 02:37:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 07 03:37:24 2013 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 1Vp7li-0002cx-Oy for ged-emacs-devel@m.gmane.org; Sat, 07 Dec 2013 03:37:22 +0100 Original-Received: from localhost ([::1]:34322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp7li-00061p-CO for ged-emacs-devel@m.gmane.org; Fri, 06 Dec 2013 21:37:22 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp7lW-00061f-SM for emacs-devel@gnu.org; Fri, 06 Dec 2013 21:37:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vp7lO-0001uJ-FO for emacs-devel@gnu.org; Fri, 06 Dec 2013 21:37:10 -0500 Original-Received: from mail-ea0-x233.google.com ([2a00:1450:4013:c01::233]:61263) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vp7lO-0001uF-8W for emacs-devel@gnu.org; Fri, 06 Dec 2013 21:37:02 -0500 Original-Received: by mail-ea0-f179.google.com with SMTP id r15so607897ead.38 for ; Fri, 06 Dec 2013 18:37:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=6f6/H5KVaUujtxmH/dcZi9WLvlT03wonIy1oAyal7so=; b=Tjh5fv9CIYsLKAM5McWO1hZjSstaLVulkkMaLyOAhKXdtd4VHn1gTIoBBRsX9bta71 pe+5iq18lPkIZdlIJXaeJsy59ybLtnoMhrUMJEoX07BcR6B+mx3A+dhySYBrWdSaLK6s QogumL2ce/26QpAOzZ3D3gmBADM699IpUqE07AqnBGQLlWDRvYhFdOQsUuErV9KTUmVC ccpwb9rU0Xj4qbu26oZ/J/eA89X0nbsNjAtmikWHcrUaVLxzRm2L1zc3MlcoMaPLNxnD FTEMGHV2h3Lprfw5jz5+SjbuTy+udkbwE8Mz8tdxNYloChOxx7HEX8pH/Q/C1+HOg8UV Tdwg== X-Received: by 10.14.211.69 with SMTP id v45mr19213978eeo.75.1386383820870; Fri, 06 Dec 2013 18:37:00 -0800 (PST) Original-Received: from axl ([62.228.136.233]) by mx.google.com with ESMTPSA id e43sm1710425eep.7.2013.12.06.18.36.59 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 06 Dec 2013 18:37:00 -0800 (PST) In-Reply-To: <87haalh806.fsf@gmail.com> (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vor?= =?utf-8?Q?a=22's?= message of "Fri, 06 Dec 2013 23:31:05 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::233 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:166184 Archived-At: joaotavora@gmail.com (Jo=C3=A3o T=C3=A1vora) writes: > In a recent cleanup I did of my autopair.el library [1], I decided to > try and add one of its core features to emacs's built-in > `electric-pair-mode' and make it the default behaviour. As a long-time autopair user, I heartily approve. Thanks! > There are also more features in autopair.el that could be worth adding > into electric.el, like autobackspacing two adjacent parens, chomping > whitespace forward on skip, smarter auto-wrapping of region, etc... Autobackspacing two adjacent parens sounds good. I'm also partial to the `autopair-newline' feature. It would probably serve best as an extension of `electric-layout-mode'.