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

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

Re: keyboard-translate working for Control but not for Alt


From: Elena
Subject: Re: keyboard-translate working for Control but not for Alt
Date: Thu, 6 Aug 2009 00:54:04 -0700 (PDT)
User-agent: G2/1.0

On 4 Ago, 18:36, bojohan+n...@dd.chalmers.se (Johan Bockgård) wrote:
> Elena <egarr...@gmail.com> writes:
> > Out of curiosity, I tried to swap M-x and M-t as well:
>
> > (keyboard-translate ?\M-x ?\M-t)
> > (keyboard-translate ?\M-t ?\M-x)
>
> > but evaluating each expression fail with (numbers are not the same):
>
> keyboard-translate only works for characters.
>
> You can use
>
>   (define-key key-translation-map [?\M-x] [?\M-t])
>   (define-key key-translation-map [?\M-t] [?\M-x])

That does not work. No errors when evaluating the expressions, but
then both M-x and M-t don't work anymore (they just output 't' and
'x').

Thanks for your answer.


reply via email to

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