From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: elisp question:keyboard-translate with hyper fail?
Date: Sat, 12 Mar 2011 11:26:53 +1100 [thread overview]
Message-ID: <87ipvpji9e.fsf@rapttech.com.au> (raw)
In-Reply-To: cd5edef2-a6bd-4526-927a-6931ccab5bc1@l2g2000prg.googlegroups.com
Xah Lee <xahlee@gmail.com> writes:
> On Mar 11, 4:01 am, Deniz Dogan <deniz.a.m.do...@gmail.com> wrote:
>> > i double checked and the syntax for hyper ?\H- seems correct.
>>
>> (keyboard-translate ?\C-3 ?•) does not work for me.
>>
>> Debugger entered--Lisp error: (wrong-type-argument characterp 67108915)
>> keyboard-translate(67108915 8226)
>> eval((keyboard-translate 67108915 8226))
>> eval-last-sexp-1(nil)
>> eval-last-sexp(nil)
>> call-interactively(eval-last-sexp nil nil)
>>
>> `keyboard-translate' only works with characters and neither C-3 nor
>> H-3 make up characters as far as I know.
>
> that's strange.
>
> i have the following and they work.
>
> ;; 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)
>
> the ?\C-3 doesn't work (my mistake), but this works
> (keyboard-translate ?\C-t ?•)
>
> so maybe with a letter char it works, however, the following still
> doesn't work
> (keyboard-translate ?\H-t ?•)
>
> Xah
Are you sure your keyboard is actually generating the keycode you think
it is? I remember on some (unix) based systems, I had to used xmodmap in
order to get the hyper key working.
--
tcross (at) rapttech dot com dot au
next prev parent reply other threads:[~2011-03-12 0:26 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 [this message]
2011-03-12 2:54 ` Stefan Monnier
2011-03-12 4:51 ` Le Wang
2011-03-12 21:16 ` Stefan Monnier
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=87ipvpji9e.fsf@rapttech.com.au \
--to=timx@nospam.dev.null \
--cc=help-gnu-emacs@gnu.org \
/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).