emacs-devel
[Top][All Lists]
Advanced

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

Re: C-i and TAB


From: Ivan Kanis
Subject: Re: C-i and TAB
Date: Fri, 8 Feb 2013 02:35:22 +0100
User-agent: SquirrelMail/1.4.21

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

I like Andrew's best. I have never been a fan of the "native" keybinding
representation.




reply via email to

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