[comp.sys.sun] gnu emacs and rebinding function keys

coleman@max.uregina.ca (10/08/90)

Gnu emacs has been installed on our system Sun3/50/60/180 all running Sun
OS3.5. I have gone throuugh the tutorial and all of that works fine. Emacs
was compiled using the sun3 option and comes up with

  GNU Emacs 18.55.1 of Tue Jul 31 1990 on jeeves (berkeley-unix)
  Copyright (C) 1988 Free Software Foundation, Inc.

The manual indicates how to rebind an ascii key, but I want to rebind
various function keys; for example, I tried the following in my .emacs
file

(global-set-key "C-[[A" 'previous-line)
(global-set-key "C-[[B" 'next-line)
(global-set-key "C-[[C" 'forward-char)
(global-set-key "C-[[D" 'backward-char)

with variations on the second entry in each line such as "R8", "RF8" and a
quoted octal number for the uparrow. I alwasy get a message indicating
that there is an error in my init file.  What is the correct procedure for
rebinding the function keys ( L?, F?, R?) in emacs?

Robert Coleman
Mathematics Department
University of Regina
coleman@di.uregina.ca