From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: elisp question:keyboard-translate with hyper fail? Date: Sat, 12 Mar 2011 11:26:53 +1100 Organization: Unlimited download news at news.astraweb.com Message-ID: <87ipvpji9e.fsf@rapttech.com.au> References: <86aa8db7-62db-478d-940d-82609c8dde34@18g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1299890430 5573 80.91.229.12 (12 Mar 2011 00:40:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Mar 2011 00:40:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 12 01:40:26 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PyCsc-0002Ys-6s for geh-help-gnu-emacs@m.gmane.org; Sat, 12 Mar 2011 01:40:26 +0100 Original-Received: from localhost ([127.0.0.1]:45614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyCsb-0005M1-KQ for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 19:40:25 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:RW1XnTXbCibLCiH76WiJxG3GYXA= Original-Lines: 40 Original-NNTP-Posting-Host: 97d94649.news.astraweb.com Original-X-Trace: DXC=Vijb[8SUZ<34K?0c7HD\@7L?0kYOcDh@:Xb<8`kRh<; 0]QE`fi=n]\>]G; 2>V^?kW3CAkl5c@Xgk>@ik:W; 9d8f3a2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80011 Archived-At: Xah Lee writes: > On Mar 11, 4:01 am, Deniz Dogan 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