From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.help
Subject: Re: [help] emacs on gnome-terminal
Date: Mon, 23 Jul 2007 23:48:23 -0400
Message-ID: <jwvd4yipipd.fsf-monnier+gnu.emacs.help@gnu.org>
References: <87sl7f8e1q.fsf@solcore.sol.net> <hw1wezfcv2.fsf@clpc78.comlab>
	<87lkd78a1f.fsf@solcore.sol.net> <g7r6mzdvlf.fsf@clpc78.comlab>
	<878x97rwil.fsf@solcore.sol.net> <b4msl7er582.fsf@jpl.org>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: sea.gmane.org 1185252062 22914 80.91.229.12 (24 Jul 2007 04:41:02 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Tue, 24 Jul 2007 04:41:02 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 24 06:41:01 2007
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
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.50)
	id 1IDCCi-0000Lq-UZ
	for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jul 2007 06:41:01 +0200
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1IDCCi-0005MC-EM
	for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Jul 2007 00:41:00 -0400
Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.umontreal.ca!news.umontreal.ca.POSTED!not-for-mail
Original-NNTP-Posting-Date: Mon, 23 Jul 2007 22:48:23 -0500
Original-Newsgroups: gnu.emacs.help
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)
Cancel-Lock: sha1:1d8wRvi/kK3fLAJPJY2w3vxEBFE=
Original-Lines: 20
X-Usenet-Provider: http://www.giganews.com
Original-NNTP-Posting-Host: 132.204.27.213
Original-X-Trace: sv3-jfFuKlYRp8uwf9+lXLBlajQDE195W4VYiwy0chOFXtA6BtrtojuGpG1MQCAFeY2g0WKVJA42WBSPPIJ!rDUEuYDxiPtcj8ABy0wt3CdWpBDlzQaen9UC4OnPoc/xhjkwkFipEhw8/IMs5FusaaVBeyGhwPDH!Chw2AwL/aPrN9kgHyA==
Original-X-Complaints-To: abuse@umontreal.ca
X-DMCA-Complaints-To: abuse@umontreal.ca
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
	properly
X-Postfilter: 1.3.35
Original-Xref: shelby.stanford.edu gnu.emacs.help:150329
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 <help-gnu-emacs.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=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:45908
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/45908>

>> emacs still gives me pesky ;5D;5C;5D;5C;5D;5C;5D;5C;5D;5C.
>> [I tried xterm-extras without my .emacs]

> Try the following in your ~/.emacs file:

> (define-key global-map "\eO1;5A" [(control up)])
> (define-key global-map "\eO1;5B" [(control down)])
> (define-key global-map "\eO1;5C" [(control right)])
> (define-key global-map "\eO1;5D" [(control left)])

Actually such key-mapping should not be done in global-map, but in
function-key-map:

(define-key function-key-map "\eO1;5A" [C-up])
(define-key function-key-map "\eO1;5B" [C-down])
(define-key function-key-map "\eO1;5C" [C-right])
(define-key function-key-map "\eO1;5D" [C-left])


-- Stefan