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

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

Re: elisp question:keyboard-translate with hyper fail?


From: Tim X
Subject: Re: elisp question:keyboard-translate with hyper fail?
Date: Sat, 12 Mar 2011 11:26:53 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Xah Lee <address@hidden> writes:

> On Mar 11, 4:01 am, Deniz Dogan <address@hidden> 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


reply via email to

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