From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#5541: 23.1; after upgrading to emacs-23, meta key in xterm no longer works Date: Fri, 19 Mar 2010 11:19:38 -0400 Message-ID: <87aau4l4ol.fsf@stupidchicken.com> References: <873a04ysew.fsf@stupidchicken.com> <876350rmmx.fsf@stupidchicken.com> <20100313220934.GA23155@psychosis.jim.sh> <20100313182742.U88710@mail101.his.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1269012331 32715 80.91.229.12 (19 Mar 2010 15:25:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 19 Mar 2010 15:25:31 +0000 (UTC) Cc: Jim Paris , dickey@invisible-island.net, 5541@debbugs.gnu.org To: Thomas Dickey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 19 16:25:26 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nse4h-0006k7-Q5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Mar 2010 16:25:24 +0100 Original-Received: from localhost ([127.0.0.1]:47207 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nse4g-0007ku-Jg for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Mar 2010 11:25:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nse4N-0007eX-Ok for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2010 11:25:03 -0400 Original-Received: from [140.186.70.92] (port=41371 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nse4M-0007dd-8d for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2010 11:25:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nse4K-00077l-GH for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2010 11:25:02 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47944) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nse4K-00077h-Ej for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2010 11:25:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NsdzW-00058c-K0; Fri, 19 Mar 2010 11:20:02 -0400 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Mar 2010 15:20:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-GNU-PR-Message: followup 5541 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5541-submit@debbugs.gnu.org id=B5541.126901198619738 (code B ref 5541); Fri, 19 Mar 2010 15:20:02 +0000 Original-Received: (at 5541) by debbugs.gnu.org; 19 Mar 2010 15:19:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsdzF-00058J-DD for submit@debbugs.gnu.org; Fri, 19 Mar 2010 11:19:45 -0400 Original-Received: from pantheon-po25.its.yale.edu ([130.132.50.119]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NsdzD-000586-OY for 5541@debbugs.gnu.org; Fri, 19 Mar 2010 11:19:44 -0400 Original-Received: from furry (dhcp128036014175.central.yale.edu [128.36.14.175]) (authenticated bits=0) by pantheon-po25.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o2JFJcmd029443 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 19 Mar 2010 11:19:38 -0400 Original-Received: by furry (Postfix, from userid 1000) id BB39CC011; Fri, 19 Mar 2010 11:19:38 -0400 (EDT) In-Reply-To: <20100313182742.U88710@mail101.his.com> (Thomas Dickey's message of "Sat, 13 Mar 2010 18:57:49 -0500 (EST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.94 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 19 Mar 2010 11:20:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35638 Archived-At: Thomas Dickey writes: >> ! Shift-paste to paste CLIPBOARD instead of PRIMARY. >> xterm*VT100.Translations: #override \ >> Shift : insert-selection(CLIPBOARD)\n \ >> Ctrl ~Shift Meta -: smaller-vt-font() \n \ >> Ctrl ~Shift Meta =: larger-vt-font() \n > > The various key-modifier resources are all ifdef'd as a single group > (no escape sequence is implemented to disable the feature). I suppose > emacs is checking the version number from xterm to decide if the feature > is present, since there's no other indication that it's available. > > xterm generally doesn't know what the translations do, but it does > check if the meta key appears in a translation. For that, and alt, > xterm decides to not use those in modified function-keys - to try to > avoid odd conflicts with cases such as this translation. (They may be > the same key - same general effect). But the particular combination > caught by the translations wouldn't be seen by xterm; it only massages > the seen keycodes. > > The escape sequence says xterm's sending a 3 (for alt). Perhaps it's > something along the lines of xterm deciding that meta isn't part of > the modify-other-keys feature, but alt (on the same key) still is. I > assume that emacs is looking for 9 (meta) rather than 3 (alt), and so > it errors out. Thanks for the explanation. I don't see, from this, what we can do to detect and fix this problem automatically, so I suppose it will be up to the user who has defined such translations to tell Emacs not to use modify-other-keys. I have added an entry to etc/PROBLEMS in the Emacs source tree documenting this.