[Top][All Lists]

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

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

From: Xah Lee
Subject: Re: elisp question:keyboard-translate with hyper fail?
Date: Fri, 11 Mar 2011 14:11:52 -0800 (PST)
User-agent: G2/1.0

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 ?•)


reply via email to

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