From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.help Subject: Re: insert pair doesn't work with *, $ and % Date: Thu, 07 Dec 2006 12:47:54 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165466432 23067 80.91.229.10 (7 Dec 2006 04:40:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 04:40:32 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 05:40:30 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsB3c-0007n1-Rp for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 05:40:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsB3c-0001NN-E2 for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Dec 2006 23:40:28 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-X-Trace: individual.net rMKeHm5A6D865sHfGFg8ewGLTKVaFPJRyjdfEKxAguWMcyszA= X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:U4A3N18WfjY1ymeEU/C6iWYNDh4= Original-Xref: shelby.stanford.edu gnu.emacs.help:143699 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 Xref: news.gmane.org gmane.emacs.help:39302 Archived-At: >>>>> In >>>>> Dieter Wilhelm wrote: > For a special mode I'd like to have key bindings duplicating various > characters like e. g. > (global-set-key "\C-c{" 'insert-pair) > this does work as expected (I'm getting a pair of {} and the point is > within the pair). But I can't get the analogous with *, $ and % to > run, I'm just getting one of these characters back and not a pair. > What am I missing here? You need to add to the `insert-pair-alist' variable the pairs corresponding to those keys. For example: (add-to-list 'insert-pair-alist '(?* ?*)) (add-to-list 'insert-pair-alist '(?$ ?$)) (add-to-list 'insert-pair-alist '(?% ?%))