[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: elisp question:keyboard-translate with hyper fail?
From: |
Stefan Monnier |
Subject: |
Re: elisp question:keyboard-translate with hyper fail? |
Date: |
Fri, 11 Mar 2011 21:54:46 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> ;; Swap “Ctrl+x” and “Ctrl+t”, so it's easier to type on Dvorak layout
> (keyboard-translate ?\C-t ?\C-x)
> (keyboard-translate ?\C-x ?\C-t)
There are 32 Ctrl+letter combinations which are characters, and the
above two are among them. These are exceptional special cases due
to history. My general recommendation is to not use keyboard-translate
but key-translation-map or function-key-map, which work on arbitrary
key sequences rather only on single-char events.
Stefan
- elisp question:keyboard-translate with hyper fail?, Xah Lee, 2011/03/11
- Re: elisp question:keyboard-translate with hyper fail?, Deniz Dogan, 2011/03/11
- Message not available
- Re: elisp question:keyboard-translate with hyper fail?, Xah Lee, 2011/03/12
- Re: elisp question:keyboard-translate with hyper fail?, Xah Lee, 2011/03/12
- Re: elisp question:keyboard-translate with hyper fail?, Stefan Monnier, 2011/03/14
- Re: elisp question:keyboard-translate with hyper fail?, Xah Lee, 2011/03/14
- Re: elisp question:keyboard-translate with hyper fail?, Xah Lee, 2011/03/18
- Re: elisp question:keyboard-translate with hyper fail?, rusi, 2011/03/19
- Re: elisp question:keyboard-translate with hyper fail?, Xah Lee, 2011/03/19