From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bojohan+news@dd.chalmers.se (Johan =?utf-8?Q?Bockg=C3=A5rd?=) Newsgroups: gmane.emacs.help Subject: Re: keyboard-translate working for Control but not for Alt Date: Tue, 04 Aug 2009 20:36:53 +0200 Message-ID: <877hxjpgsa.fsf@dd.chalmers.se> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249411083 22810 80.91.229.12 (4 Aug 2009 18:38:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 18:38:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 04 20:37:54 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 1MYOtW-0003eg-Fi for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 20:37:54 +0200 Original-Received: from localhost ([127.0.0.1]:37636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYOtV-0004ZF-MD for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 14:37:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYOst-0004OJ-6l for help-gnu-emacs@gnu.org; Tue, 04 Aug 2009 14:37:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYOso-0004LY-Fv for help-gnu-emacs@gnu.org; Tue, 04 Aug 2009 14:37:14 -0400 Original-Received: from [199.232.76.173] (port=49909 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYOso-0004LA-BQ for help-gnu-emacs@gnu.org; Tue, 04 Aug 2009 14:37:10 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:45621 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYOsn-00054M-5o for help-gnu-emacs@gnu.org; Tue, 04 Aug 2009 14:37:09 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MYOsj-0008NZ-Gm for help-gnu-emacs@gnu.org; Tue, 04 Aug 2009 18:37:05 +0000 Original-Received: from c-19c7e455.04-211-6c6b701.cust.bredbandsbolaget.se ([85.228.199.25]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2009 18:37:05 +0000 Original-Received: from bojohan+news by c-19c7e455.04-211-6c6b701.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Aug 2009 18:37:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-19c7e455.04-211-6c6b701.cust.bredbandsbolaget.se Mail-Copies-To: never User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:iRmP0+tMA7gxw4QM2Zlgb5TnB54= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:66742 Archived-At: 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 (define-key key-translation-map [?\M-x] [?\M-t]) (define-key key-translation-map [?\M-t] [?\M-x])