* Re: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
@ 2010-03-13 18:42 Chong Yidong
2010-03-13 19:10 ` Sven Joachim
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Chong Yidong @ 2010-03-13 18:42 UTC (permalink / raw)
To: emacs-devel; +Cc: Jim Paris, 5541
Does anyone on this list have xterm-253 available to test? I can't
reproduce the problem on xterm 241, and don't have xterm-253 available
to test at the moment.
> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
2010-03-13 18:42 23.1; after upgrading to emacs-23, meta key in xterm no longer works Chong Yidong
@ 2010-03-13 19:10 ` Sven Joachim
2010-03-13 19:57 ` Glenn Morris
2010-03-14 12:51 ` Eduard Wiebe
2 siblings, 0 replies; 8+ messages in thread
From: Sven Joachim @ 2010-03-13 19:10 UTC (permalink / raw)
To: Chong Yidong; +Cc: Jim Paris, 5541, emacs-devel
On 2010-03-13 19:42 +0100, Chong Yidong wrote:
> Does anyone on this list have xterm-253 available to test? I can't
> reproduce the problem on xterm 241, and don't have xterm-253 available
> to test at the moment.
With xterm 255 I cannot reproduce the problem either (xterm 253 is not
available here).
Sven
>> 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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
2010-03-13 18:42 23.1; after upgrading to emacs-23, meta key in xterm no longer works Chong Yidong
2010-03-13 19:10 ` Sven Joachim
@ 2010-03-13 19:57 ` Glenn Morris
2010-03-13 20:29 ` bug#5541: " Chong Yidong
2010-03-14 12:51 ` Eduard Wiebe
2 siblings, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2010-03-13 19:57 UTC (permalink / raw)
To: Chong Yidong; +Cc: Jim Paris, 5541, emacs-devel
Chong Yidong wrote:
> Does anyone on this list have xterm-253 available to test?
Yes.
>> 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.
Something similar happens for me too (and with the trunk).
>> Indeed, if I execute the command:
>> (xterm-turn-off-modify-other-keys (selected-frame))
>> then my meta key temporarily starts working again.
This command makes no difference for me.
I normally use aterm, which works fine.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bug#5541: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
2010-03-13 19:57 ` Glenn Morris
@ 2010-03-13 20:29 ` Chong Yidong
2010-03-13 22:09 ` Jim Paris
2010-03-14 19:05 ` Glenn Morris
0 siblings, 2 replies; 8+ messages in thread
From: Chong Yidong @ 2010-03-13 20:29 UTC (permalink / raw)
To: Glenn Morris; +Cc: Jim Paris, emacs-devel, 5541
Glenn Morris <rgm@gnu.org> writes:
>> Does anyone on this list have xterm-253 available to test?
>
> Yes.
>
>>> 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.
>
> Something similar happens for me too (and with the trunk).
And does xterm-24* behave OK?
It's possible this is a bug in xterm-253, which would be why Sven
Joachim does not see it on xterm-255.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bug#5541: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
2010-03-13 20:29 ` bug#5541: " Chong Yidong
@ 2010-03-13 22:09 ` Jim Paris
2010-03-13 23:57 ` Thomas Dickey
2010-03-14 19:05 ` Glenn Morris
1 sibling, 1 reply; 8+ messages in thread
From: Jim Paris @ 2010-03-13 22:09 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel, dickey, 5541
Chong Yidong wrote:
> Glenn Morris <rgm@gnu.org> writes:
>
> >> Does anyone on this list have xterm-253 available to test?
> >
> > Yes.
> >
> >>> 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.
> >
> > Something similar happens for me too (and with the trunk).
>
> And does xterm-24* behave OK?
>
> It's possible this is a bug in xterm-253, which would be why Sven
> Joachim does not see it on xterm-255.
I did some more testing and it only happens on some of my systems.
Turns out the problem shows up when this .Xresources setting is
present:
! Shift-paste to paste CLIPBOARD instead of PRIMARY.
xterm*VT100.Translations: #override \
Shift <Btn2Up>: insert-selection(CLIPBOARD)\n \
Ctrl ~Shift Meta <Key>-: smaller-vt-font() \n \
Ctrl ~Shift Meta <Key>=: larger-vt-font() \n
That's worked for me forever... I have no idea why it would cause new
versions of emacs to act funny. CCing Thomas Dickey, any ideas?
The original report is at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5541
-jim
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bug#5541: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
2010-03-13 22:09 ` Jim Paris
@ 2010-03-13 23:57 ` Thomas Dickey
0 siblings, 0 replies; 8+ messages in thread
From: Thomas Dickey @ 2010-03-13 23:57 UTC (permalink / raw)
To: Jim Paris; +Cc: Chong Yidong, emacs-devel, dickey, 5541
On Sat, 13 Mar 2010, Jim Paris wrote:
> Chong Yidong wrote:
>> Glenn Morris <rgm@gnu.org> writes:
>>
>>>> Does anyone on this list have xterm-253 available to test?
>>>
>>> Yes.
>>>
>>>>> 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.
>>>
>>> Something similar happens for me too (and with the trunk).
>>
>> And does xterm-24* behave OK?
>>
>> It's possible this is a bug in xterm-253, which would be why Sven
>> Joachim does not see it on xterm-255.
>
> I did some more testing and it only happens on some of my systems.
> Turns out the problem shows up when this .Xresources setting is
> present:
>
> ! Shift-paste to paste CLIPBOARD instead of PRIMARY.
> xterm*VT100.Translations: #override \
> Shift <Btn2Up>: insert-selection(CLIPBOARD)\n \
> Ctrl ~Shift Meta <Key>-: smaller-vt-font() \n \
> Ctrl ~Shift Meta <Key>=: larger-vt-font() \n
>
> That's worked for me forever... I have no idea why it would cause new
> versions of emacs to act funny. CCing Thomas Dickey, any ideas?
> The original report is at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5541
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.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bug#5541: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
2010-03-13 20:29 ` bug#5541: " Chong Yidong
2010-03-13 22:09 ` Jim Paris
@ 2010-03-14 19:05 ` Glenn Morris
1 sibling, 0 replies; 8+ messages in thread
From: Glenn Morris @ 2010-03-14 19:05 UTC (permalink / raw)
To: Chong Yidong; +Cc: Jim Paris, emacs-devel, 5541
Chong Yidong wrote:
> And does xterm-24* behave OK?
I don't have that version. My system just updated to xterm-255, and it
behaves the same as 253 did. Running `xrdb -remove' first makes no
difference.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: 23.1; after upgrading to emacs-23, meta key in xterm no longer works
2010-03-13 18:42 23.1; after upgrading to emacs-23, meta key in xterm no longer works Chong Yidong
2010-03-13 19:10 ` Sven Joachim
2010-03-13 19:57 ` Glenn Morris
@ 2010-03-14 12:51 ` Eduard Wiebe
2 siblings, 0 replies; 8+ messages in thread
From: Eduard Wiebe @ 2010-03-14 12:51 UTC (permalink / raw)
To: emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
> Does anyone on this list have xterm-253 available to test?
Yes.
$ xterm -version
X.Org 6.8.99.903(253)
>> 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.
I can't reproduce this on my machine.
$ uname -a
FreeBSD nirvana.pusto.de 7.2-RELEASE-p6 FreeBSD 7.2-RELEASE-p6 #4: Wed Feb 3 12:03:26 CET 2010 root@nirvana.pusto.de:/usr/obj/usr/src/sys/GENERIC i386
>> 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.
Works fine too.
--
Eduard Wiebe
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-03-14 19:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-13 18:42 23.1; after upgrading to emacs-23, meta key in xterm no longer works Chong Yidong
2010-03-13 19:10 ` Sven Joachim
2010-03-13 19:57 ` Glenn Morris
2010-03-13 20:29 ` bug#5541: " Chong Yidong
2010-03-13 22:09 ` Jim Paris
2010-03-13 23:57 ` Thomas Dickey
2010-03-14 19:05 ` Glenn Morris
2010-03-14 12:51 ` Eduard Wiebe
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).