From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: harven Newsgroups: gmane.emacs.help Subject: Re: keyboard-translate working for Control but not for Alt Date: Tue, 04 Aug 2009 19:20:30 +0200 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249407767 12275 80.91.229.12 (4 Aug 2009 17:42:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Aug 2009 17:42:47 +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 19:42:40 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 1MYO21-00058U-KJ for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 19:42:37 +0200 Original-Received: from localhost ([127.0.0.1]:58260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYO20-0005zR-VN for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Aug 2009 13:42:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!newsserver.cilea.it!univ-lyon1.fr!news.ecp.fr!u-picardie.fr!proxad.net!feeder1-2.proxad.net!cleanfeed3-b.proxad.net!nnrp9-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:ETIoRkjsrJ9LRhJV1CNADeaUwnI= Original-Lines: 20 Original-NNTP-Posting-Date: 04 Aug 2009 19:20:30 MEST Original-NNTP-Posting-Host: 82.240.200.149 Original-X-Trace: 1249406430 news-3.free.fr 7796 82.240.200.149:50776 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:171559 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:66739 Archived-At: harven writes: > 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) > > Use instead > (global-set-key (kbd "M-x") 'execute-extended-command) > (global-set-key (kbd "M-t") 'transpose-words)> > > In contrast to C-x, M-x and M-t are not prefix keys. > So it is not necessary to use a keyboard-translation. oups, use (global-set-key (kbd "M-t") 'execute-extended-command) (global-set-key (kbd "M-x") 'transpose-words)