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: Mon, 14 Mar 2011 13:32:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0150ba30-5e36-4a03-aaa5-12413386a5f3@k10g2000prh.googlegroups.com> References: <86aa8db7-62db-478d-940d-82609c8dde34@18g2000prd.googlegroups.com> <70e1c1e8-81b6-474e-b1ba-c9b94b697258@22g2000prx.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300135331 17095 80.91.229.12 (14 Mar 2011 20:42:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 20:42:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 14 21:42:07 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 1PzEac-0005QQ-LM for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 21:42:06 +0100 Original-Received: from localhost ([127.0.0.1]:46249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzEac-0004eP-5l for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Mar 2011 16:42:06 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!k10g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 76.126.112.84 Original-X-Trace: posting.google.com 1300134772 19861 127.0.0.1 (14 Mar 2011 20:32:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 14 Mar 2011 20:32:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k10g2000prh.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.133 Safari/534.16, gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:185967 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:80110 Archived-At: On Mar 14, 7:17=C2=A0am, Stefan Monnier wrote: > > ugh, just tried this and still doesn't work. > > (define-key key-translation-map [?\H-8] ?\=E2=97=87) > > key-translation-map maps key sequences to key sequences, so try > > =C2=A0 (define-key key-translation-map [?\H-8] [?\=E2=97=87]) Thanks! That worked. Xah > > =CE=99 have it all working by > > (global-set-key (kbd "H-3") (lambda () (interactive) (insert "=E2=80=A2= "))) ; > > bullet > > You can also do > > =C2=A0 (global-set-key (kbd "H-3") "=E2=80=A2") > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan