From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Le Wang <l26wang@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: elisp question:keyboard-translate with hyper fail?
Date: Sat, 12 Mar 2011 16:16:15 -0500 [thread overview]
Message-ID: <jwv1v2coxpi.fsf-monnier+inbox@gnu.org> (raw)
In-Reply-To: <AANLkTin76Tko4d7Jadqd75f5SXmd589Pb-PPgMD4j-GD@mail.gmail.com> (Le Wang's message of "Sat, 12 Mar 2011 12:51:56 +0800")
> 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
next prev parent reply other threads:[~2011-03-12 21:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-11 11:00 elisp question:keyboard-translate with hyper fail? Xah Lee
2011-03-11 12:01 ` Deniz Dogan
[not found] ` <mailman.6.1299844900.14178.help-gnu-emacs@gnu.org>
2011-03-11 22:11 ` Xah Lee
2011-03-12 0:26 ` Tim X
2011-03-12 2:54 ` Stefan Monnier
2011-03-12 4:51 ` Le Wang
2011-03-12 21:16 ` Stefan Monnier [this message]
2011-03-13 4:31 ` Le Wang
2011-03-12 7:07 ` Xah Lee
2011-03-12 7:22 ` Xah Lee
2011-03-14 14:17 ` Stefan Monnier
2011-03-14 20:32 ` Xah Lee
2011-03-18 13:56 ` Xah Lee
2011-03-19 16:09 ` rusi
2011-03-20 0:31 ` Xah Lee
2011-03-20 2:51 ` rusi
2011-03-12 11:59 ` Deniz Dogan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv1v2coxpi.fsf-monnier+inbox@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
--cc=l26wang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).