From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: left brackets insert both Date: Fri, 25 Mar 2005 16:39:15 GMT Organization: x Message-ID: References: <1111765040.509327.116280@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111769192 19113 80.91.229.2 (25 Mar 2005 16:46:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Mar 2005 16:46:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 25 17:46:31 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DErwU-00028u-Iy for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Mar 2005 17:45:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DEsC0-0005En-Oc for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Mar 2005 12:01:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newscon02.news.prodigy.com!prodigy.net!newsmst01a.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr12.news.prodigy.com.POSTED!404941e6!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:Vz2vTcoSfOIe3rFz4pR5cPVPwb8= Original-Lines: 45 Original-NNTP-Posting-Host: 66.194.80.196 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr12.news.prodigy.com 1111768755 ST000 66.194.80.196 (Fri, 25 Mar 2005 11:39:15 EST) Original-NNTP-Posting-Date: Fri, 25 Mar 2005 11:39:15 EST X-UserInfo1: TSUGGVSEAJWMAP\YKBCB^]\@PJ_^PBQLGPQRZ\YIJYWZUYICD^RAQBKZQTZTX\_I[^G_KGFNON[ZOE_AZNVO^\XGGNTCIRPIJH[@RQKBXLRZ@CD^HKANYVW@RLGEZEJN@\_WZJBNZYYKVIOR]T]MNMG_Z[YVWSCH_Q[GPC_A@CARQVXDSDA^M]@DRVUM@RBM Original-Xref: shelby.stanford.edu gnu.emacs.help:129591 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:25142 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25142 >>>> Shug Boabby writes: > when the start of a brace pair was typed, one of [<[{(], the editor > would insert the corresponding closing brace and place the cursor > in-between. this worked for all text editing modes, but could be turned > off when needed. There is paren-pair-mode with cvs emacs... not sure what version it was introduced. It's buffer local, so you'll have to enable it for any modes you want it. The list of paired characters is controled by paren-pair-list. ,----[ C-h f paren-pair-mode RET ] | paren-pair-mode is an interactive compiled Lisp function in `paren-pair'. | (paren-pair-mode arg) | | Toggle paren pair mode. | With a prefix arg, enable paren pair mode iff arg is nonzero. | | [back] `---- ,----[ C-h v paren-pair-list RET ] | paren-pair-list's value is shown below. | Automatically becomes buffer-local when set in any fashion. | | Not documented as a variable. | | Defined in `paren-pair'. | | Value: | (("[" | #("]" 0 1 | (paren-paired t))) | ("(" | #(")" 0 1 | (paren-paired t))) | (#("\"" 0 1 | (paren-paired t)) | "\"")) | | Local in buffer *scratch*; global value is nil | | [back] `----