[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 <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
- 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 <=
- Re: elisp question:keyboard-translate with hyper fail?, Tim X, 2011/03/11
- Re: elisp question:keyboard-translate with hyper fail?, Stefan Monnier, 2011/03/11
- Re: elisp question:keyboard-translate with hyper fail?, Le Wang, 2011/03/11
- Re: elisp question:keyboard-translate with hyper fail?, Stefan Monnier, 2011/03/12
- Re: elisp question:keyboard-translate with hyper fail?, Le Wang, 2011/03/12
- 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