unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* C-i and TAB
@ 2002-10-17  9:12 Boris H.
  0 siblings, 0 replies; 8+ messages in thread
From: Boris H. @ 2002-10-17  9:12 UTC (permalink / raw)


Hi,

my Emacs 21.1.1 reads C-i as TAB. I want to remove this binding to rebind 
C-i. I tried 

(global-unset-key "\C-i")

which had no effect.
How do I make Emacs read C-i as C-i only?

Boris

^ permalink raw reply	[flat|nested] 8+ messages in thread

* C-i and tab
@ 2002-10-31 13:33 Boris H.
  2002-10-31 14:20 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Boris H. @ 2002-10-31 13:33 UTC (permalink / raw)


Hi,

Emacs 21 reads C-i as Tab. How can I change this so I can remap C-i without 
affecting tab? I tried all sorts of global-set-key and -unset-key without 
luck.

Boris

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-i and tab
  2002-10-31 13:33 Boris H.
@ 2002-10-31 14:20 ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2002-10-31 14:20 UTC (permalink / raw)



On Thu, 31 Oct 2002, Boris H. wrote:

> Emacs 21 reads C-i as Tab. How can I change this so I can remap C-i without 
> affecting tab? I tried all sorts of global-set-key and -unset-key without 
> luck.

You could remap [tab] (the function key) to what C-i is mapped now, and 
then remap C-i to something else.  Note that this will not work on 
character terminals where the TAB key produces C-i, so Emacs cannot 
distinguish between them.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-i and tab
       [not found] <mailman.1036074155.21234.help-gnu-emacs@gnu.org>
@ 2002-10-31 15:26 ` Boris H.
  2002-10-31 18:52   ` Eli Zaretskii
       [not found]   ` <mailman.1036095163.1063.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Boris H. @ 2002-10-31 15:26 UTC (permalink / raw)


Eli Zaretskii wrote:

> You could remap [tab] (the function key) to what C-i is mapped now, and
> then remap C-i to something else.  Note that this will not work on
> character terminals where the TAB key produces C-i, so Emacs cannot
> distinguish between them.

I've just tried it, but it doesn't work:

(global-set-key [(tab)] 'indent-for-tab-command)
(global-set-key [(control i)] 'ispell)

When I press C-h k C-i, Emacs tells me that TAB runs the command 
lisp-indent-line.

Boris

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-i and tab
  2002-10-31 15:26 ` C-i and tab Boris H.
@ 2002-10-31 18:52   ` Eli Zaretskii
       [not found]   ` <mailman.1036095163.1063.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2002-10-31 18:52 UTC (permalink / raw)


> From: "Boris H." <nosp@m.de>
> Newsgroups: gnu.emacs.help
> Date: Thu, 31 Oct 2002 16:26:57 +0100
> 
> Eli Zaretskii wrote:
> 
> > You could remap [tab] (the function key) to what C-i is mapped now, and
> > then remap C-i to something else.  Note that this will not work on
> > character terminals where the TAB key produces C-i, so Emacs cannot
> > distinguish between them.
> 
> I've just tried it, but it doesn't work:
> 
> (global-set-key [(tab)] 'indent-for-tab-command)

Try this:

 (define-key function-key-map [tab] 'indent-for-tab-command)

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-i and tab
       [not found]   ` <mailman.1036095163.1063.help-gnu-emacs@gnu.org>
@ 2002-10-31 21:25     ` Stefan Monnier <foo@acm.com>
  2002-11-04  9:57     ` Boris H.
  1 sibling, 0 replies; 8+ messages in thread
From: Stefan Monnier <foo@acm.com> @ 2002-10-31 21:25 UTC (permalink / raw)


>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:
>  (define-key function-key-map [tab] 'indent-for-tab-command)

You mean (define-key global-map [tab] 'indent-for-tab-command) ?


        Stefan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-i and tab
       [not found]   ` <mailman.1036095163.1063.help-gnu-emacs@gnu.org>
  2002-10-31 21:25     ` Stefan Monnier <foo@acm.com>
@ 2002-11-04  9:57     ` Boris H.
  2002-11-07  7:48       ` maierh
  1 sibling, 1 reply; 8+ messages in thread
From: Boris H. @ 2002-11-04  9:57 UTC (permalink / raw)


Eli Zaretskii wrote:
> Try this:
> 
>  (define-key function-key-map [tab] 'indent-for-tab-command)

It still does not work. Emacs keeps reading C-i as tab. Is there no way to 
change this?
The same is true for C-m and ret.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: C-i and tab
  2002-11-04  9:57     ` Boris H.
@ 2002-11-07  7:48       ` maierh
  0 siblings, 0 replies; 8+ messages in thread
From: maierh @ 2002-11-07  7:48 UTC (permalink / raw)


"Boris H." <nosp@m.de> writes:

> It still does not work. Emacs keeps reading C-i as tab. Is there no
> way to change this?  The same is true for C-m and ret.

What's wrong and why do you want to change that? C-i is tab and C-m is
RET.  

Harald

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-11-07  7:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1036074155.21234.help-gnu-emacs@gnu.org>
2002-10-31 15:26 ` C-i and tab Boris H.
2002-10-31 18:52   ` Eli Zaretskii
     [not found]   ` <mailman.1036095163.1063.help-gnu-emacs@gnu.org>
2002-10-31 21:25     ` Stefan Monnier <foo@acm.com>
2002-11-04  9:57     ` Boris H.
2002-11-07  7:48       ` maierh
2002-10-31 13:33 Boris H.
2002-10-31 14:20 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2002-10-17  9:12 C-i and TAB Boris H.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).