From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Elena Newsgroups: gmane.emacs.help Subject: keyboard-translate working for Control but not for Alt Date: Tue, 4 Aug 2009 07:39:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249396852 8631 80.91.229.12 (4 Aug 2009 14:40:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 14:40:52 +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 16:40:46 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 1MYLBu-0002O4-0t for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 16:40:38 +0200 Original-Received: from localhost ([127.0.0.1]:52444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYLBt-0005GT-Hf for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 10:40:37 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit4.readnews.com!postnews.google.com!j21g2000yqe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 81.208.92.182 Original-X-Trace: posting.google.com 1249396782 25825 127.0.0.1 (4 Aug 2009 14:39:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 4 Aug 2009 14:39:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j21g2000yqe.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:171552 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:66730 Archived-At: Hello, since I use a Dvorak keyboard, I'd like to swap C-x and C-t, as it is suggested here: http://www.emacswiki.org/emacs/DvorakKeyboard#toc4 The proposed code performs its task: http://www.emacswiki.org/emacs/DvorakKeyboard#toc4 (keyboard-translate ?\C-x ?\C-t) (keyboard-translate ?\C-t ?\C-x) 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): Debugger entered--Lisp error: (wrong-type-argument characterp 134217848) keyboard-translate(134217848 134217844) eval((keyboard-translate 134217848 134217844)) eval-last-sexp-1(nil) eval-last-sexp(nil) call-interactively(eval-last-sexp nil nil) Software: - Windows XP SP3 - GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT- MJASON Any help? Thanks.