From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: M- vs. ESC Date: Thu, 06 Jan 2005 13:30:50 -0500 Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1105036323 16645 80.91.229.6 (6 Jan 2005 18:32:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jan 2005 18:32:03 +0000 (UTC) Cc: Andreas Schwab , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jan 06 19:31:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CmcQM-0007te-00 for ; Thu, 06 Jan 2005 19:31:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cmcbg-0001TZ-4m for ged-emacs-devel@m.gmane.org; Thu, 06 Jan 2005 13:43:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CmcbT-0001RK-7i for emacs-devel@gnu.org; Thu, 06 Jan 2005 13:43:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CmcbQ-0001Pu-Qw for emacs-devel@gnu.org; Thu, 06 Jan 2005 13:43:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CmcbQ-0001Pd-I9 for emacs-devel@gnu.org; Thu, 06 Jan 2005 13:43:20 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CmcPQ-0003Nr-GF; Thu, 06 Jan 2005 13:30:56 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 434848282AC; Thu, 6 Jan 2005 13:30:56 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id AC3314AC32E; Thu, 6 Jan 2005 13:30:50 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 8DA1B8CA69; Thu, 6 Jan 2005 13:30:50 -0500 (EST) Original-To: David Kastrup In-Reply-To: (David Kastrup's message of "Thu, 06 Jan 2005 19:03:32 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.673, requis 5, autolearn=not spam, AWL 0.23, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:31962 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31962 >>>> Yes, I do, because that's what Emacs is receiving when I press >>>> Meta-left, for example. More specifically, when I type >>>> Meta-left at Emacs running in xterm it receives the key sequence >>>> [?\e ?\e ?O ?D], which gets translated to [?\e left] through >>>> function-key-map. >>>> >>>> That is a surprise to me. Someone must have changed this in recent >>>> years. >> >>> He did not say what his input terminal is. It may not be X. >> >> He said it's an xterm. > Which is not X. So Emacs never gets to see Meta. Please re-read: he presses M-left, which xterm turns into [?\e ?\e ?O ?D] and which function-key-map transforms to [?\e left] and the lookup with [?\e left] fails to find the M-left binding to backward-word. In contrast, M-C-f is turned by xterm into [?\e ?\C-f] which function-key-map leaves alone and the lookup for [?\e ?\C-f] successfully finds the M-C-f binding to forward-sexp. Stefan