From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edric M Ellis Newsgroups: gmane.emacs.help Subject: Re: Want to rebind C-i Date: 14 Oct 2002 14:38:33 +0100 Organization: The Mathworks, Ltd. Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <3daab306@news.uni-ulm.de> <3daac4d7@news.uni-ulm.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034602920 18983 127.0.0.1 (14 Oct 2002 13:42:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2002 13:42:00 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1815Tr-0004vw-00 for ; Mon, 14 Oct 2002 15:41:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 1815TB-0004KY-00; Mon, 14 Oct 2002 09:41:17 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!news.mathworks.com!compaq-bsd!news.mathworks.co.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: eellis.mathworks.co.uk Original-X-Trace: sabina.mathworks.co.uk 1034602713 28086 192.168.72.158 (14 Oct 2002 13:38:33 GMT) Original-X-Complaints-To: jwoollatt@mathworks.co.uk Original-NNTP-Posting-Date: Mon, 14 Oct 2002 13:38:33 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:106034 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2581 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2581 Boris H. wrote: > Edric M Ellis wrote: >> I think you need to make a keymap for TAB, like this: >> >> (global-unset-key [tab]) >> (setq tab-keymap (make-sparse-keymap)) >> (define-key global-map [tab] tab-keymap) >> (define-key tab-keymap (kbd "i") 'ispell) > > Hi Edric, > > I've just tried this and got an error message. Doh! What was the error message? It worked for me.... > What does the above code do? It was my understanding that to make a multiple-key binding, you need to make a keymap first (line 2), bind that to the first key of the sequence (line 3 - in this case - tab), and then add the other keys of the binding (line 4). So, to add your other stuff, you'd do more modified copies of line 4. > Is there a way to just remove the binding of C-i to TAB? Hmm. I don't really know where the C-i <--> TAB stuff happens, sorry. Edric. -- Edric M Ellis The MathWorks, Ltd., Matrix House, Cowley Park, Cambridge CB4 0HH, UK Tel: +44 (0) 1223 423 200 Ext: 218 Fax: +44 (0) 1223 423 255