From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bertram Scharpf Newsgroups: gmane.emacs.help Subject: Meta key, Alt key & ESC Date: 5 Jan 2003 17:09:24 GMT Organization: keine Angabe Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1041786656 6673 80.91.224.249 (5 Jan 2003 17:10:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2003 17:10:56 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18VEIY-0001jT-00 for ; Sun, 05 Jan 2003 18:10:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18VEIE-0007Ad-02 for gnu-help-gnu-emacs@m.gmane.org; Sun, 05 Jan 2003 12:10:34 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.tu-darmstadt.de!news.belwue.de!news.tesion.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 73 Original-NNTP-Posting-Host: stu1ir100-103-152.ras.tesion.net Original-X-Trace: stu1id2.ip.tesion.net 1041786564 25636 195.226.103.152 (5 Jan 2003 17:09:24 GMT) Original-X-Complaints-To: newsmaster@tesion.net Original-NNTP-Posting-Date: 5 Jan 2003 17:09:24 GMT User-Agent: slrn/0.9.7.3 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:108680 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5209 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5209 Hi, sorry, I could not find a documentation about this problem. Under Debian/GNU Linux my Emacs Meta key is the one between `Control_L' and `Alt_L'. But from SuSE Linux I am used `Alt_L' to be the Meta key. Now I don't want to change my Debian `.Xmodmap'; rather I want Emacs to accept the `Alt_L' in one of the following manners: A. I examine my keystrokes using the command "C-h k" (`descibe-key'). Typing C-h k -a yields in under --------- ----- "M-a runs the command ...." SuSE "A-a is undefined" Debian/GNU But I get $ xmodmap -pm | grep mod1 mod1 Alt_L (0x40) $ in both cases! So there must be a way to tell Emacs which modifier is the Meta Key. How do I tell? B. My `/usr/X11R6/lib/X11/app-defaults/XTerm' contains something like -------------------------------------- XTerm*VT100.Translations: #override \ AltShift_L,Alt: string(0x01B) insert() \n\ AltShift_R,Alt: string(0x01B) insert() \n\ Alt Ctrl : string(0x01B) insert() \n\ Alt : string(0x01B) insert() -------------------------------------- (I didn't find a documentation about that either.) Running Emacs in an XTerm as "emacs -nw" I get the following results: Typing yields in C-h k -a "M-a runs the command ...." C-h k ESC a "ESC a runs the command ...." C-h k -a "ESC a runs the command ...." but in the X-windowed Emacs still: C-h k -a "A-a is undefined" Is there a way letting Emacs take an as an ESC-prefix as XTerm does? Thank you very much in advance for your answers. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany