From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: elisp question:keyboard-translate with hyper fail? Date: Fri, 11 Mar 2011 14:11:52 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <86aa8db7-62db-478d-940d-82609c8dde34@18g2000prd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299883249 5718 80.91.229.12 (11 Mar 2011 22:40:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2011 22:40:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 11 23:40:45 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 1PyB0l-00035b-J8 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 23:40:43 +0100 Original-Received: from localhost ([127.0.0.1]:53622 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PyB0l-0001xE-3O for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Mar 2011 17:40:43 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!l2g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1299881512 9123 127.0.0.1 (11 Mar 2011 22:11:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 11 Mar 2011 22:11:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l2g2000prg.googlegroups.com; posting-host=76.126.112.84; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.127 Safari/534.16, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:185861 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:80009 Archived-At: On Mar 11, 4:01=A0am, Deniz Dogan wrote: > > i double checked and the syntax for hyper ?\H- seems correct. > > (keyboard-translate ?\C-3 ?=95) does not work for me. > > Debugger entered--Lisp error: (wrong-type-argument characterp 67108915) > =A0 keyboard-translate(67108915 8226) > =A0 eval((keyboard-translate 67108915 8226)) > =A0 eval-last-sexp-1(nil) > =A0 eval-last-sexp(nil) > =A0 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 =93Ctrl+x=94 and =93Ctrl+t=94, so it's easier to type on Dvorak lay= out (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 ?=95) so maybe with a letter char it works, however, the following still doesn't work (keyboard-translate ?\H-t ?=95) Xah