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

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

Re: how to get Meta+y to be Meta+Tab


From: Andreas Politz
Subject: Re: how to get Meta+y to be Meta+Tab
Date: Sun, 26 Oct 2008 01:01:31 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

Xah wrote:
suppose i want to make Meta+y to function as pressing Meta+Tab.

intuitively, i do this:
(keyboard-translate ?\M-y ?\M-9) ; Meta+y to Meta+Tab

but that does not work.

i looked in the elisp doc... seems the issue is rather complex
involving elisp reader for chars under data type chapter, Event Mod
under Input Events chapter, Keymap translation under key map
chapter... hard to have a coherent picture at this point.

Any idea how to get this to work?

  Xah
∑ http://xahlee.org/

?\M-9 is the metafied key left from the 0 key. Anyway keyboard-translate
does not work with meta, try key-translation-map

(define-key key-translation-map [?\M-y] [?\M-\C-i])

-ap


reply via email to

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