🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #1931

Re: Binding functions on a PC

#1931
From: David Ellis 11-Dec-1992 1652
Date: Fri, 11 Dec 1992 21:52
23 lines
1524 bytes
khamsi@ll.mit.edu (Sarir Khamsi) remarks that the F1 key on his terminal
issues the character sequence "^[[11~",

> which emacs does not like to see in a "global-set-key" command.

The problem is that the character sequence "^[[" (ESC-[) is by default
bound in GNU Emacs to a function (I think it's backward-paragraph).

In order to get GNU Emacs to recognize character sequences beginning with 
ESC-[, you must unbind that function, e.g. by

(global-unset-key "\e[")

preferably early in your .emacs file.

This situation has been raised often enough that it should go into the
GNU Emacs FAQ list.  I don't think it's there now.

----
David  J  Ellis
Digital Equipment Corporation,          Semiconductor Engineering Group
77 Reed Road, Hudson MA 01749           Mailstop HLO2-3/D11         
Internet: d_ellis@ricks.enet.dec.com    Phone: (508) 568-4393 
Technical Details
Message-ID: <9212112152.AA26409@enet-gw.pa.dec.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!decwrl!deccrl!news.crl.dec.com!pa.dec.com!ricks.enet.dec.com!d_ellis

Show Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!decwrl!deccrl!news.crl.dec.com!pa.dec.com!ricks.enet.dec.com!d_ellis
From: d_ellis@ricks.enet.dec.com (David Ellis  11-Dec-1992 1652)
Message-ID: <9212112152.AA26409@enet-gw.pa.dec.com>
Subject: Re: Binding functions on a PC
Date: Fri, 11 Dec 92 13:52:15 PST
X-Received: by usenet.pa.dec.com; id AA02260; Fri, 11 Dec 92 13:52:16 -0800
X-Received: by enet-gw.pa.dec.com; id AA26409; Fri, 11 Dec 92 13:52:15 -0800
X-Received: from ricks.enet; by decwrl.enet; Fri, 11 Dec 92 13:52:15 PST
X-To: gnu.emacs.help.usenet
X-Apparently-To: gnu.emacs.help.usenet
Lines: 23