From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jim Paris" Newsgroups: gmane.emacs.bugs Subject: bug#5541: 23.1; after upgrading to emacs-23, meta key in xterm no longer works Date: Sun, 07 Feb 2010 14:55:33 -0500 Message-ID: <201002071955.o17JtYhR011187@psychosis.jim.sh> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1265608863 11190 80.91.229.12 (8 Feb 2010 06:01:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2010 06:01:03 +0000 (UTC) To: 5541@debbugs.gnu.org, jim@jtan.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 08 07:00:58 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 1NeMg5-0004BC-IK for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Feb 2010 07:00:58 +0100 Original-Received: from localhost ([127.0.0.1]:35180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeMg4-0005Ww-U8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Feb 2010 01:00:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeEfU-0003vG-Ts for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 16:27:48 -0500 Original-Received: from [199.232.76.173] (port=60122 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeEfU-0003v4-H4 for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 16:27:48 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeEfT-0003kr-AB for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 16:27:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38947) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeEfS-0003kX-VV for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 16:27:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NeEGY-0002q8-Ji; Sun, 07 Feb 2010 16:02:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: "Jim Paris" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2010 21:02:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5541 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, jim@jtan.com Original-Received: via spool by submit@debbugs.gnu.org id=B.126557648510902 (code B ref -1); Sun, 07 Feb 2010 21:02:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2010 21:01:25 +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 1NeEFl-0002pn-Bi for submit@debbugs.gnu.org; Sun, 07 Feb 2010 16:01:25 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NeE0H-0002ed-5V for submit@debbugs.gnu.org; Sun, 07 Feb 2010 15:45:13 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:35338 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NeE0C-0007Wv-VY for submit@debbugs.gnu.org; Sun, 07 Feb 2010 15:45:09 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NeDHW-0003ln-RP for submit@debbugs.gnu.org; Sun, 07 Feb 2010 14:59:01 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:60334) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NeDHW-0003lM-HY for submit@debbugs.gnu.org; Sun, 07 Feb 2010 14:58:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NeDHV-0007te-HZ for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 14:58:57 -0500 Original-Received: from [140.186.70.92] (port=48364 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NeDH1-0007qi-T4 for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 14:58:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NeDEd-0006wd-Sz for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 14:56:00 -0500 Original-Received: from jim.sh ([75.150.123.25]:60045 helo=psychosis.jim.sh) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NeDEd-0006wA-Dv for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2010 14:55:59 -0500 Original-Received: from hypnosis.jim.sh (hypnosis.bacon [10.0.101.77]) by psychosis.jim.sh (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id o17JtYhR011187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=OK); Sun, 7 Feb 2010 14:55:35 -0500 Original-Received: by hypnosis.jim.sh (sSMTP sendmail emulation); Sun, 07 Feb 2010 14:55:33 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Sun, 07 Feb 2010 16:01:13 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 07 Feb 2010 16:02:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 08 Feb 2010 01:00:34 -0500 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:34951 Archived-At: With "emacs23 -nw" running inside xterm-253, my meta key does not work for things like M-x. Instead, the terminal bell beeps, and the string ;120~ appears in the buffer. Looking at the log below, this is because the terminal actually sent the string \e[27;3;120~ which is occurring because emacs turned on the "modifyOtherKeys" setting with the escape sequence \e[>4;1m at startup. Older versions of emacs did not do this, and everything worked fine. Indeed, if I execute the command: (xterm-turn-off-modify-other-keys (selected-frame)) then my meta key temporarily starts working again. My normal Xterm settings are xterm*metaSendsEscape: true xterm*eightBitInput: false which has always worked in previous versions. This new "modifyOtherKeys" stuff causes plenty of other problems too, like the string "0;235;0c" (xterm identification response?) sometimes appearing in my buffer at startup if the system is heavily loaded or I'm on a slow connection, and the input buffer getting flushed at startup, so I lose stuff I typed while emacs was loading. Could a knob be added to just get rid of it completely? -jim In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.3) of 2009-11-01 on excelsior, modified by Debian configured using `configure '--build=x86_64-linux-gnu' '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Text Minor modes in effect: tooltip-mode: t tool-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 3 5 ; 0 c a s d f RET ( x t e r m - t u r n - o f f - m o d i f y - o t h e r - k e y s SPC ( s e l e c t e d - f r a m e ) ) RET C-x C-s C-g ESC [ 2 7 ; 3 ; 1 2 0 ~ C-p C-e C-n C-p C-x C-e C-n ESC x C-g RET RET ESC x r e p o r t - b u g RET C-g ESC x r e p o t - e m DEL DEL DEL DEL r t - e m a TAB RET Recent messages: Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/51debian-el.el (source)...done Loading /etc/emacs/site-start.d/70jim.el (source)... Toggling menu-bar-mode off; better pass an explicit argument. Ready. Loading /etc/emacs/site-start.d/70jim.el (source)...done Loading quail/latin-ltx...done Ready. Quit nil Quit [2 times]