Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!husc6!cca!mirror!hpwalf!hpwala!hpwale!frede
From: frede@hpwale.HP.COM (Fred Ehrhardt)
Newsgroups: comp.emacs
Subject: Gnu ELisp define-key question
Message-ID: <760002@hpwale.HP.COM>
Date: Tue, 14-Jul-87 13:31:50 EDT
Article-I.D.: hpwale.760002
Posted: Tue Jul 14 13:31:50 1987
Date-Received: Thu, 16-Jul-87 07:40:15 EDT
Organization: HP Waltham Division
Lines: 18

I have an Emacs Lisp question, which I can't answer by examining the
*.el files that came with Gnu 18.36, the version we're running. Since
we're using HP terminals [big surprise], some of us want to use
define-key to bind \eS to (scroll-down 1). Since several popular major
modes (text-mode, nroff-mode) define this escape sequence as part of a
local key map, we lose the original binding.

Is there a way, in the mode *.el files, to prevent *conditionally* the
re-binding of a key sequence, in the event that key is already bound?
Such as [pardon my ELisp]:

	(if (not (is-bound "\eS")) 
	    (define-key  etc....

This or more-elegant solutions gratefully accepted.

Fred Ehrhardt
HP-Waltham (MA)