From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: global-set-key C-next
Date: Fri, 10 Dec 2010 16:17:29 -0500 [thread overview]
Message-ID: <jwvpqt949l2.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.57.1291956252.5417.help-gnu-emacs@gnu.org
>> 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
next prev parent reply other threads:[~2010-12-10 21:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-03 3:08 global-set-key C-next Philip
2010-12-09 22:19 ` Drew Adams
2010-12-09 23:41 ` Philip Ganchev
2010-12-10 4:43 ` Drew Adams
[not found] ` <mailman.57.1291956252.5417.help-gnu-emacs@gnu.org>
2010-12-10 21:17 ` Stefan Monnier [this message]
2010-12-10 21:43 ` Drew Adams
[not found] ` <mailman.41.1292017466.4804.help-gnu-emacs@gnu.org>
2010-12-10 22:35 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvpqt949l2.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.