From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: keybindings for c-i and tab Date: Thu, 16 Nov 2006 08:49:52 -0600 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============1617461575==" X-Trace: sea.gmane.org 1163688936 17495 80.91.229.2 (16 Nov 2006 14:55:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Nov 2006 14:55:36 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 16 15:55:31 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GkiZK-0001b9-8J for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 15:50:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkiZJ-0001I3-BG for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 09:50:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkiZ2-0001F4-Be for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 09:50:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkiZ0-0001Bz-Oo for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 09:50:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkiZ0-0001Bf-Jh for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 09:50:02 -0500 Original-Received: from [64.192.143.210] (helo=easeserver.easesoftware.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GkiZ0-0001xm-ON for help-gnu-emacs@gnu.org; Thu, 16 Nov 2006 09:50:03 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by easeserver.easesoftware.com (Postfix) with ESMTP id 8C87051F154; Thu, 16 Nov 2006 08:49:57 -0600 (CST) Original-Received: from easeserver.easesoftware.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07239-08; Thu, 16 Nov 2006 08:49:53 -0600 (CST) Original-Received: from [64.192.143.210] (easeserver.easesoftware.com [64.192.143.210]) by easeserver.easesoftware.com (Postfix) with ESMTP id 953C051F121; Thu, 16 Nov 2006 08:49:53 -0600 (CST) In-Reply-To: Original-To: Tyler X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: by amavisd-new at easesoftware.net 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:38754 Archived-At: --===============1617461575== Content-Type: multipart/alternative; boundary=Apple-Mail-2-697799133 --Apple-Mail-2-697799133 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed On Nov 16, 2006, at 2:03 PM, Tyler wrote: > Juanma Barranquero wrote: >> You can >> (define-key function-key-map [tab] nil) >> But then, many functions bound to C-I (like completion, or automatic >> indentation) won't work with the tab key. You'll have to type C-I. >> Not >> very pretty. > That's not good. I use tab for completion and auto-fill, or at > least I did until I discovered it conflicted with my intended use > of C-i. So am I correct in assuming that I can't bind anything to C- > i without also binding it to tab, unless I elect to turn off tab > entirely with your solution? Your first note said "mystically linked" -- they produce the same ascii code. Control-I is "tab". Now, on X11 and probably other window based emacs implementation, there is a tab key that you can put into a keymap (as the previous note shows). So, it might be that you can do a special dance and get the two to be bound separately. But I think it will become a maintenance problem. I would try saving the current binding of tab. Set your new binding for control-I. And then restore the original binding of tab. I'm assuming the default binding of tab is somehow an indirection to the binding of control-i but I don't know the details. I'm not sure this helps... Perry Smith Ease Software, Inc. pedz@easesoftware.com http://www.easesoftware.com Low cost SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems --Apple-Mail-2-697799133 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
On Nov 16, 2006, at = 2:03 PM, Tyler wrote:

Juanma Barranquero wrote:
You can
=A0(define-key function-key-map = [tab] nil)
But then, many functions bound = to C-I (like completion, or automatic
very pretty.
=
That's not good. I use tab for = completion and auto-fill, or at least I did until I discovered it = conflicted with my intended use of C-i. So am I correct in assuming that = I can't bind anything to C-i without also binding it to tab, unless I = elect to turn off tab entirely with your = solution?

Your first note said "mystically = linked" -- they produce the same ascii code.=A0 Control-I is = "tab".

Now, on X11 = and probably other window based emacs implementation, there is a tab key = that you can put into a keymap (as the previous note = shows).

So, = it might be that you can do a special dance and get the two to be bound = separately.=A0 But I think it will become a maintenance problem.

I would try saving the = current binding of tab.=A0 Set your new binding for control-I.=A0 And = then restore the original binding of tab.=A0 I'm assuming the default = binding of tab is somehow an indirection to the binding of control-i but = I don't know the details.

I'm not sure this = helps...

Perry = Smith
Ease Software, Inc.
=

Low cost = SATA Disk Systems for IBMs p5, pSeries, and RS/6000 AIX systems


=

= --Apple-Mail-2-697799133-- --===============1617461575== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-gnu-emacs mailing list help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1617461575==--