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: where does Alt become Meta? Date: Sun, 22 Jul 2007 02:16:43 +0200 Organization: Chalmers University of Technology, Sweden Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1185064841 11885 80.91.229.12 (22 Jul 2007 00:40:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2007 00:40:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 22 02:40:39 2007 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 1ICPUx-0003WA-Hu for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Jul 2007 02:40:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICPUw-00076D-U0 for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Jul 2007 20:40:34 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed1.swip.net!swipnet!newsfeed.sunet.se!news01.sunet.se!129.16.222.141.MISMATCH!gide.ita.chalmers.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: remote5.student.chalmers.se Original-X-Trace: gide.ita.chalmers.se 1185063403 19821 129.16.29.83 (22 Jul 2007 00:16:43 GMT) Original-X-Complaints-To: usenet@gide.ita.chalmers.se Original-NNTP-Posting-Date: Sun, 22 Jul 2007 00:16:43 +0000 (UTC) Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:TI4ywGr8JDyd5yar+P5ShlPF+HY= Original-Xref: shelby.stanford.edu gnu.emacs.help:150286 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:45868 Archived-At: Eli Zaretskii writes: >> From: Will Parsons [...] > I think you might be confusing two different issues: Emacs does > recognize an Alt prefix, and it is different from the Meta prefix. > A-q is always unbound in Emacs by default. Emacs only recognizes Alt if there is a separate Meta. >> Where does Emacs map Alt combinations to Meta combinations? > > Nowhere. This is done outside Emacs's keymaps. Unless there are Meta keys, Emacs reinterprets Alt as Meta. [xterm.c] /* If we couldn't find any meta keys, accept any alt keys as meta keys. */ if (! dpyinfo->meta_mod_mask) { dpyinfo->meta_mod_mask = dpyinfo->alt_mod_mask; dpyinfo->alt_mod_mask = 0; } /* If some keys are both alt and meta, make them just meta, not alt. */ if (dpyinfo->alt_mod_mask & dpyinfo->meta_mod_mask) { dpyinfo->alt_mod_mask &= ~dpyinfo->meta_mod_mask; } cf. http://www.emacswiki.org/cgi-bin/wiki/MetaKeyProblems -- Johan Bockgård