From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: global-set-key C-next Date: Fri, 10 Dec 2010 16:17:29 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292017253 25218 80.91.229.12 (10 Dec 2010 21:40:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 21:40:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 22:40:49 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRAhs-0001sw-EM for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 22:40:48 +0100 Original-Received: from localhost ([127.0.0.1]:47171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRAhr-0003Za-UC for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 16:40:47 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Injection-Info: mx03.eternal-september.org; posting-host="5ESV0E4sfgtqyPsXa8d/qg"; logging-data="11130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX180A35OakJvcSBr9IfTB88o" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:fAGOQtJQnUvsG1QiPrWy5pFmTlI= sha1:waWT7+6YZpyBarFjEr/+oFkfqjE= Original-Xref: usenet.stanford.edu gnu.emacs.help:183152 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77407 Archived-At: >> 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 "" [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 ) runs blabla -- Stefan