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 05:22:45 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <773635dd-d64b-4c6f-913d-736058150968@t13g2000yqt.googlegroups.com> 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 1249562456 19898 80.91.229.12 (6 Aug 2009 12:40:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 12:40:56 +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 14:40:49 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 1MZ2H2-000721-Gj for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 14:40:48 +0200 Original-Received: from localhost ([127.0.0.1]:35745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZ2H1-0007A1-VC for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 08:40:48 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!a26g2000yqn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 81.208.92.182 Original-X-Trace: posting.google.com 1249561365 23571 127.0.0.1 (6 Aug 2009 12:22:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 6 Aug 2009 12:22:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a26g2000yqn.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:171677 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:66844 Archived-At: On 6 Ago, 11:01, Bernardo wrote: > >> 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'). > > don't know, both the above and the following format work here (GNU/Linux)= : > (define-key key-translation-map [(meta x)] [(meta t)]) > I apologize for not testing it properly... it works under "emacs -q". Something is broken in my customization. Thanks for pointing that out. > not sure if it's any different under the hood but you may also want to > try this variation: > (keyboard-translate ?\M-x ?\M-t) This raises an error with "emacs -q" too. Thanks for your reply.