emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-i and TAB


From: Xue Fuqiao
Subject: Re: C-i and TAB
Date: Fri, 8 Feb 2013 07:56:02 +0800

On Thu, 7 Feb 2013 11:47:34 -0800
"Drew Adams" <address@hidden> wrote:

> > > (global-set-key (kbd "C-i") 'foo)
> > > (global-set-key (kbd "TAB") 'bar)
> > 
> > `kbd's syntax defines TAB as equivalent to C-i, so the above two
> > instructions bind the same key.
> > 
> > Try
> > (global-set-key [?\C-i] 'foo)
> > (global-set-key [tab] 'bar)
> 
> 
> Or just this, no?
> 
> (global-set-key (kbd "C-i")   'foo)
> (global-set-key (kbd "<tab>") 'bar)

Their effect should be the same.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao



reply via email to

[Prev in Thread] Current Thread [Next in Thread]