From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jo=E3o_T=E1vora?= Newsgroups: gmane.emacs.help Subject: Re: Electric braces Date: Fri, 21 Sep 2012 17:56:19 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1348246616 1379 80.91.229.3 (21 Sep 2012 16:56:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2012 16:56:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 21 18:57:01 2012 Return-path: Envelope-to: geh-help-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 1TF6XB-0002k7-TE for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 18:56:58 +0200 Original-Received: from localhost ([::1]:51284 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF6X7-0004Tt-Fc for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Sep 2012 12:56:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF6Wz-0004TH-Jq for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 12:56:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TF6Wv-00051S-DB for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 12:56:45 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:62092) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TF6Wv-00051L-7A for help-gnu-emacs@gnu.org; Fri, 21 Sep 2012 12:56:41 -0400 Original-Received: by pbbro12 with SMTP id ro12so8895117pbb.0 for ; Fri, 21 Sep 2012 09:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=nqb2EmJVgpQNXWhFUzAglOJ4gqLLPV+U8LzQXqqUT60=; b=CNv7kSPFAanG4AyLIGGYZy+PMBg2NKaj28tQ4FA/g/SDaL/032kd3eR811tSXhEtXK q7Q8q01tWszheDdeE3Qr7Rl/xh/JPhQWpo1Tpj6yNVVItG/aM0aX4jWv0WCRQUm29ZwW LpRI6eD1qcWeu7AwX0oRVHQhlHvhjrclBFORDL3FlJDF58jgRRNWtFY1KBxuqZN9Td4A 02KRadcQuaJRbER4NxgrH0YvcE1pTHhIxPxOYGtAXemQXFIffhPLYCchcn69P/AC6l20 qkOzrZRGqt5Opf1EYpvCIa9qZM05SkqPUIsN6mb/Im3RtvrnhdeIDAVTR7ZAhmwQdTE7 eljw== Original-Received: by 10.66.74.196 with SMTP id w4mr14720633pav.32.1348246599540; Fri, 21 Sep 2012 09:56:39 -0700 (PDT) Original-Received: by 10.66.159.133 with HTTP; Fri, 21 Sep 2012 09:56:19 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86878 Archived-At: (originally forgot to cc: help-gnu-emacs@gnu.org) I'd just like to add that autopair: * is now hosted at github.com/capitaomorte/autopair * out of the box, does a bit more than electric-pair-mode, like deleting 0-width paren pairs when backspacing and helping to keep the buffer balanced (for example typing 3 opening "{" consecutively makes "{{{}}}" instead of electric pair's "{{{}". * can be customized to behave differently in comments and strings, pair characters, and more I'm quite positively surprised how electric-pair-mode has evolved though, but still find it awkward in how it sometimes pairs and sometimes doesn't. --=20 Jo=E3o T=E1vora On Thu, Sep 20, 2012 at 6:38 PM, Stefan Monnier wrote: >> I tried the built-in electric-pair-mode and it does what I want. > > I'm glad you like it, > > > Stefan