From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: Re: keyboard-translate working for Control but not for Alt Date: Thu, 6 Aug 2009 00:54:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: <773635dd-d64b-4c6f-913d-736058150968@t13g2000yqt.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1249548119 10232 80.91.229.12 (6 Aug 2009 08:41:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 08:41:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 10:41:52 2009 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.50) id 1MYyXc-0005yw-3y for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 10:41:40 +0200 Original-Received: from localhost ([127.0.0.1]:37562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYyXb-0000Nh-Gu for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 04:41:39 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t13g2000yqt.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 81.208.92.182 Original-X-Trace: posting.google.com 1249545244 24025 127.0.0.1 (6 Aug 2009 07:54:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 6 Aug 2009 07:54:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t13g2000yqt.googlegroups.com; posting-host=81.208.92.182; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 User-Agent: G2/1.0 X-HTTP-Via: 1.1 sic.int.lisit.it:8080 (squid/2.5.STABLE3) X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:171670 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:66838 Archived-At: On 4 Ago, 18:36, bojohan+n...@dd.chalmers.se (Johan Bockg=E5rd) wrote: > Elena writes: > > Out of curiosity, I tried to swap M-x and M-t as well: > > > (keyboard-translate ?\M-x ?\M-t) > > (keyboard-translate ?\M-t ?\M-x) > > > but evaluating each expression fail with (numbers are not the same): > > keyboard-translate only works for characters. > > You can use > > =A0 (define-key key-translation-map [?\M-x] [?\M-t]) > =A0 (define-key key-translation-map [?\M-t] [?\M-x]) That does not work. No errors when evaluating the expressions, but then both M-x and M-t don't work anymore (they just output 't' and 'x'). Thanks for your answer.