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

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

Re: global-set-key C-next


From: Stefan Monnier
Subject: Re: global-set-key C-next
Date: Fri, 10 Dec 2010 16:17:29 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> not work. When I press Ctrl+PageDown, "5~" is inserted (without the
>> quotes).

That indicates that Emacs doesn't know that what you pressed is C-down.
Apparently you're running inside a text-terminal and the byte-sequence
that the text-terminal sends for C-down is not known to Emacs.

You might want to report this problem via M-x report-emacs-bug,
specifying the text-terminal you were using, the value of the TERM
envvar, and any other data you can think of.

To fix this problem, try the following:

type: 1 1 1 1 1 C-down C-h l
The C-h l will show you the last few raw events Emacs received.  So all
the events that appear there between 1 1 1 1 1 and C-h l are the events
sent by your text-terminal when you press C-down.

Then you can tell Emacs about it with:

  (define-key input-decode-map "<thebytesequence>" [C-down]).

once this is done, hitting C-down should not cause "5~" to be inserted
any more but run some other command instead.  And C-h k C-down should
tell you something like:

   C-down (translated from <bytesequence>) runs blabla


-- Stefan


reply via email to

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