[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: |
Sat, 12 Mar 2011 16:16:15 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> I got these exact keyboard-translate lines from Xah's blog. They don't work
> reliably on Windows. Sometimes after switching back to Emacs from another
> program, and my first input to Emacs is C-j, C-j still registers instead of
> C-x.
Sounds like a bug (even sounds like one that's already been reported but
that we're having trouble tracking down). But I can't find it in the
bug database, so maybe it's something different. So please M-x
report-emacs-bug an include as much info as possible to help us
reproduce the bug.
> How would I use key-translation-map to do the swap?
> (define-key key-translation-map [(control x)] [(control j)])
> (define-key key-translation-map [(control j)] [(control x)])
Yes.
> C-j seems regixter as C-x. But C-x acting like a prefix key, waiting for
> the next input.
I think that's because of function-key-map's remapping of C-x @ S <key>
to S-<key>. If you add (define-key function-key-map [?\C-x] nil), it
might work (it does for me).
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
- Re: elisp question:keyboard-translate with hyper fail?, rusi, 2011/03/19
- Re: elisp question:keyboard-translate with hyper fail?, Deniz Dogan, 2011/03/12