[Top][All Lists]

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

Re: Binding C-i breaks TAB bindings (was bug#13861)

From: Stefan Monnier
Subject: Re: Binding C-i breaks TAB bindings (was bug#13861)
Date: Mon, 04 Mar 2013 13:56:59 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> In any case <tab> is not overridden.  It's just that you don't have any
>> binding for <tab> so function-key-map makes Emacs fallback on the
>> C-i binding.
> I am trying to free up C-i for my nefarious purpose.

In a tty, TAB and C-i can't be distinguished (at least, most/all
terminal emulators will send the exact same byte sequences in both cases
by default), so there isn't much you can do there.
But in a GUI session, you could add something like

   (define-key input-decode-map [?\C-i] [control-i])

This way, `tab' will work the same as ever, but C-i will now generate
a new event `control-i' which you can bind to any command you like.


reply via email to

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