From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Meta key, Alt key & ESC Date: Sun, 05 Jan 2003 20:26:13 +0100 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84y95zqtyi.fsf@lucy.cs.uni-dortmund.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1041795138 666 80.91.224.249 (5 Jan 2003 19:32:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 5 Jan 2003 19:32:18 +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 18VGVM-0000Ac-00 for ; Sun, 05 Jan 2003 20:32:17 +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 18VGUU-0007wq-00 for gnu-help-gnu-emacs@m.gmane.org; Sun, 05 Jan 2003 14:31:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!pd951f64a.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: pd951f64a.dip.t-dialin.net (217.81.246.74) Original-X-Trace: fu-berlin.de 1041794789 14224081 217.81.246.74 (16 [73968]) User-Agent: Gnus/5.090011 (Oort Gnus v0.11) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:QVe4Ik3NIKYOLYXY5dD7RNgGj6c= Original-Xref: shelby.stanford.edu gnu.emacs.help:108684 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:5213 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5213 Bertram Scharpf writes: > 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: Metaphorically speaking Emacs looks for Meta_L and/or Meta_R in the output of "xmodmap -pm" and considers the modifier it finds there as the meta modifier. If there is no Meta_{L,R} in the output of "xmodmap -pm" (metaphorically speaking), then Emacs looks for Alt_L and Alt_R instead. You say that you don't want to frob .Xmodmap. Why not? Maybe it's because you don't want the key next to the spacebar to change (that generates Alt_L I think). So you could frob .Xmodmap to assign another keysym (other than Meta_L), say Super_L or Hyper_L to the key with a flag on it. Then there will be no Meta_{L,R} in the output of "xmodmap -pm", and so Emacs will use Alt_{L,R}. If you really really REALLY do not want to change .Xmodmap, you can consider installing Emacs from CVS. It contains a patch that defines variables x-meta-keysym and x-alt-keysym which allow to swap the meta and alt modifiers: (setq x-meta-keysym 'alt x-alt-keysym 'meta) That's what I do, but I want to change it to use another mechanism instead: I will just remove Meta_{L,R} from the keymap. -- Ambibibentists unite!