From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chat Newsgroups: gmane.emacs.help Subject: Re: How to complete \] when I input \[ . Date: Sat, 16 Aug 2008 08:56:29 -0700 Organization: Noname Inc. Message-ID: References: <878wuxksn4.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1218918699 13489 80.91.229.12 (16 Aug 2008 20:31:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2008 20:31:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 16 22:32:30 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KUSRo-0008Mz-Dq for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 22:32:28 +0200 Original-Received: from localhost ([127.0.0.1]:46033 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KUSQr-0007wy-O2 for geh-help-gnu-emacs@m.gmane.org; Sat, 16 Aug 2008 16:31:29 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!flpi089.ffdc.sbc.com!prodigy.net!flpi088.ffdc.sbc.com!prodigy.com!flpi107.ffdc.sbc.com!nlpi061.nbdc.sbc.com.POSTED!1c384869!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:uj7yJnMUvrLgDS0Dv88LZxzsGs0= Original-Lines: 17 Original-NNTP-Posting-Host: 75.37.20.251 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: nlpi061.nbdc.sbc.com 1218902193 ST000 75.37.20.251 (Sat, 16 Aug 2008 11:56:33 EDT) Original-NNTP-Posting-Date: Sat, 16 Aug 2008 11:56:33 EDT X-UserInfo1: FKPO@MC@OXVCRVX[ZJJ@^]UJUSXB@DTMNHWB_EYLJZ]BGIELDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN Original-Xref: news.stanford.edu gnu.emacs.help:161374 X-Mailman-Approved-At: Sat, 16 Aug 2008 16:31:04 -0400 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 Xref: news.gmane.org gmane.emacs.help:56724 Archived-At: "xiaopeng hu" writes: > I mean \[ \]. thanks2008/8/16 David Hansen > On Sat, 16 Aug 2008 21:09:46 +0800 xiaopeng hu wrote: > >> When I input \[ , how to complete \] and put point at middle? >> > > Should work: > > (global-set-key (kbd "[") #'insert-pair) > > David I find this kind of behavior irritating when editing existing code. Have you looked at expand package? Seems to do it only when there is nothing else on the line following point.