help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to swap M-TAB and M-`


From: Benjamin Rutt
Subject: Re: How to swap M-TAB and M-`
Date: Tue, 29 Oct 2002 18:57:12 -0500
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (sparc-sun-solaris2.8)

Kevin Rodgers <kevinr@ihs.com> writes:

> Exactly.  Do keyboard-translate and keyboard-translate-table handle arbitrary
> keyboard events, or just characters?  The "Keyboard Translations" Info node of
> the Emacs manual indicates the latter:
>
>       ... there is only one set of keyboard
>       translations, and it applies to every character that Emacs reads from
>       the terminal.  Keyboard translations take place at the lowest level of
>       input processing; the keys that are looked up in keymaps contain the
>       characters that result from keyboard translation.
>
>
>       ...  Keyboard translations affect only ASCII character input, not
>       function keys;
>
> So perhaps you need to use key-translation-map instead.

Good idea.  As an example, I've had good luck translating C-M-tab into
M-tab with the following:

(define-key key-translation-map (kbd "<C-M-tab>") "\e\t")
-- 
Benjamin


reply via email to

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