emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding xterm-extras to Emacs


From: Leo
Subject: Re: Adding xterm-extras to Emacs
Date: Sat, 13 Oct 2007 11:37:13 +0100
User-agent: Gnus/5.110007 Emacs/23.0.50 (20071010) Fedora 7 (gnu/linux)

On 2007-10-12 17:18 +0100, Stefan Monnier wrote:
>>>> However, Alt+Ctrl+Right is shown as "<C-M-right>" but not "<C-A-right>"
>>>> while Alt+Right is shown as "<A-right>" but not <M-right>. You can see
>>>> they are _INCONSISTENT_.
>>> 
>>> Can you check C-h l as well to see if Alt+Ctrl+Right sends ESC followed by
>>> the escape sequence for Ctrl+Right and if Alr+Right does the same.
>>> If not, then the inconsistency is in xterm and should be reported there
>>> (after reporting there, we may also decide to workaround the problem in
>>> Emacs by binding those escape sequences to M-right instead).
>
>> Yes, it looks like Alt+Ctrl+Right and Alt+Right send ESC.
>
>> Alt+Ctrl+Right  ^[[1;7C
>> Alt+Right       ^[[1;3C
>
> You mean "it looks like they *don't*"!  The ESC you see are the first char
> of an escape sequence, not standalone ESC characters.
>
> What "metaSendsEscape" is supposed to do is to turn Alt+A into ESC A, so if
> Right sends ^[[C (aka ESC [ C), then Alt+Right should send ^[^[[C (aka ESC
> ESC [ C).  Please report this as a feature request to xterm's maintainers.
>
> But looking at lisp/xterm.el now I see that we indeed inconsistently map
> things to S-M-foo but A-foo, so the inconsistency is our fault and should be
> corrected with the patch below,

I have updated xterm.el to the latest and now Alt+Right is recognized as
<M-right> etc.

Do you still think that xterm is missing the feature?

>         Stefan
[...]

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

       Use the most powerful email client -- http://gnus.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]