unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to rebind C-TAB
@ 2003-11-27 23:58 David Rasmussen
  2003-11-28  0:09 ` Jesper Harder
  0 siblings, 1 reply; 4+ messages in thread
From: David Rasmussen @ 2003-11-27 23:58 UTC (permalink / raw)


I've tried

(global-set-key "\C-\t" 'indent-region)

but I get errors.

/David

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

* Re: How to rebind C-TAB
  2003-11-27 23:58 How to rebind C-TAB David Rasmussen
@ 2003-11-28  0:09 ` Jesper Harder
  2003-11-28  0:20   ` David Rasmussen
  0 siblings, 1 reply; 4+ messages in thread
From: Jesper Harder @ 2003-11-28  0:09 UTC (permalink / raw)


David Rasmussen <david.rasmussen@gmx.net> writes:

> I've tried
>
> (global-set-key "\C-\t" 'indent-region)
>
> but I get errors.

(global-set-key [C-tab] 'indent-region)

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

* Re: How to rebind C-TAB
  2003-11-28  0:09 ` Jesper Harder
@ 2003-11-28  0:20   ` David Rasmussen
  2003-12-01 20:29     ` Kevin Rodgers
  0 siblings, 1 reply; 4+ messages in thread
From: David Rasmussen @ 2003-11-28  0:20 UTC (permalink / raw)


Jesper Harder wrote:
> 
> (global-set-key [C-tab] 'indent-region)

Thanks! Why does this work, and not

(global-set-key "\C-tab" 'indent-region)

which I've also tried?

/David

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

* Re: How to rebind C-TAB
  2003-11-28  0:20   ` David Rasmussen
@ 2003-12-01 20:29     ` Kevin Rodgers
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2003-12-01 20:29 UTC (permalink / raw)


David Rasmussen wrote:

> Jesper Harder wrote:
>> (global-set-key [C-tab] 'indent-region)
> 
> Thanks! Why does this work, and not
> 
> (global-set-key "\C-tab" 'indent-region)
> 
> which I've also tried?

[C-tab] is a vector containing a single symbol, which represents the

Control-tab pseudo-function key.  "\C-tab" is a string containing 3
characters: Control-t, a, and b.

BTW, "\C-\t" would be a string containing a single character, Control-TAB,
except that only ASCII characters and Meta-modified ASCII characters can be
elements of a string (see the Init Rebinding node of the Emacs manual).


-- 
Kevin Rodgers

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

end of thread, other threads:[~2003-12-01 20:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-27 23:58 How to rebind C-TAB David Rasmussen
2003-11-28  0:09 ` Jesper Harder
2003-11-28  0:20   ` David Rasmussen
2003-12-01 20:29     ` Kevin Rodgers

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).