ben@ulrich.mth.msu.edu (Ben Lotto) (03/08/89)
Part of the file .../emacs/lisp/term/sun.el is given here:
(defvar sun-esc-bracket nil
"*If non-nil, rebind ESC [ as prefix for Sun function keys.")
(defvar sun-raw-map (make-sparse-keymap) "*Keymap for ESC-[ encoded keyboard")
[ ... various define-key's for sun-raw-map omitted ... ]
(if sun-esc-bracket
(progn
(define-key esc-map "[" sun-raw-map) ; Install sun-raw-map
[ ... more define-key's for esc-map omitted ... ]
))
Now it seems to me that the code inside the if can never get executed,
since sun-esc-bracket is always set to nil when this point is reached.
Is there something I'm missing here?
--
-B. A. Lotto (ben@ulrich.mth.msu.edu)
Department of Mathematics/Michigan State University/East Lansing, MI 48824gnb@bby.oz (Gregory N. Bond) (03/09/89)
[ re sun-esc-bracket in term/sun.el being nil ] Now it seems to me that the code inside the if can never get executed, since sun-esc-bracket is always set to nil when this point is reached. Is there something I'm missing here? Yep. Your private .emacs file is interpreted first, before the term/sun.el file. So if you have a line like (setq sun-esc-bracket t) in your .emacs, then all the right things happen and you get full sun arrow and function keys. Lovely! -- Gregory Bond (gnb@melba.bby.oz), Burdett, Buckeridge & Young Ltd., Melbourne "[It] is not a phrase which has been coined by God. It was written by kre (known to mere mortals as Robert Elz), who is only a demi-god. Therefore, do not treat his words as gospel, they are merely truth." - djk@munnari