bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Bug#118914: emacs21: Home and End key do not work as before.


From: Eli Zaretskii
Subject: Re: Bug#118914: emacs21: Home and End key do not work as before.
Date: Tue, 4 Dec 2001 10:00:09 +0200 (IST)

On Mon, 3 Dec 2001, Rob Browning wrote:

> > Is this different from what <home> produces?
> 
> Sometimes:
> 
>   rxvt:
>     C-<home>: ESC [ 7 ^ C-h l
>       <home>: ESC [ 7 ~ C-h l
> 
>   gnome-terminal:
>     C-<home>: ESC O H C-h l
>       <home>: ESC O H C-h l
> 
>   xterm:
>     C-<home>: ESC O 5 H C-h l
>       <home>: ESC O H C-h l
> 
>   linux console:
> 
>     C-<home>: ESC [ 1 ~ C-h l
>       <home>: ESC [ 1 ~ C-h l
> 
> Hope this helps.

Yes, it does.

The problem is that AFAICS termcap/terminfo have no way of querying
the terminal database for the C-<home> key, so Emacs cannot map it to
the right function without some help.

Obviously, the terminals where C-<home> and <home> produce the same
escape sequence cannot distinguish between the two keys at all.

On those terminals where different sequences are produced, one way I
see to solve this is to put the sequence for C-<home> into an
appropriate file in lisp/term, so that Emacs will load it at startup.
That's assuming that the above sequences are not something that is
determined by some Debian-specific keyboard setup.

As another possibility, a user can do the same things that
lisp/term/*.el files do in her .emacs file.



reply via email to

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