From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: Separate bindings for the keyboard shortcuts Ctrl-i and TAB. Date: Thu, 20 Sep 2007 20:23:26 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: <1190018980.346341.247180@k79g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1190313642 9705 80.91.229.12 (20 Sep 2007 18:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2007 18:40:42 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 20 20:40:38 2007 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 1IYQx3-0005m0-VJ for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Sep 2007 20:40:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IYQx1-0000hp-Q6 for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Sep 2007 14:40:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!panix!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 24 Original-NNTP-Posting-Host: gamma02.me.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1190312606 17190 129.16.50.72 (20 Sep 2007 18:23:26 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Thu, 20 Sep 2007 18:23:26 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:NXwsoGrUC3qU0pg9xovRXhWQ6VU= Original-Xref: shelby.stanford.edu gnu.emacs.help:152188 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:47696 Archived-At: Harald Hanche-Olsen writes: > In X11 the key is, by default, mapped to the TAB character > (ASCII 9). This is done in function-key-map, so to map and C-i > to different keys, the sensible ting would be to remove the > translation from function-key-map, then rebind it to whatever you > wish. Note, however, that since function-key-map is a global map, > applied before any other key processing, this will have side effects > in /every/ mode, not just where you wanted separate definitions. You > could circumvent this in various hackish ways, I suppose The entry in function-key-map doesn't have to be removed. You can bind directly. Entries in `function-key-map' are ignored if they conflict with bindings made in the minor mode, local, or global keymaps. The intent is that the character sequences that function keys send should not have command bindings in their own right--but if they do, the ordinary bindings take priority. (info "(elisp)Translation Keymaps") -- Johan Bockgård