[comp.emacs] GNUemacs and Sun function keys

saito@slb-sdr.UUCP (Naoki Saito) (01/14/88)

	Hello!  I have a trouble in key-bindings on the sun.
According to the SUN-SUPPORT document in emacs/etc and emacs/lisp/term/sun.el,
the some functionalities should be assigned to sun function keys if I put
(setq sun-esc-bracket t) in my .emacs file.
	Here, two strange things happen.
(A) Though right function keys assigned in sun.el work correctly, only
Again(L2), Props(L3), Undo(L4), Expose(L5) and Open(L7) work in the left
function keys.  In the sun.el, the other left function keys, i.e., Put(L6),
Get(L8), Find(L9), and Delete(L10) are assigned, but they don't work.

(B) Though there's no assignment in the sun.el, BackSpace key are assigned to
C-h.  Where this assignment was done?

	I don't understand why?  Is our termcap for the sun wrong?
I would appreciate your advise/suggestion!

Regards,
Naoki Saito(saito@sdr.slb.com)
Schlumberger-Doll Research


NB:(1) When I use emacstool, all left function keys are fine.
   (2) I don't have my own .ttyswrc in my home directory.

jr@LF-SERVER-2.BBN.COM (John Robinson) (01/15/88)

>> (B) Though there's no assignment in the sun.el, BackSpace key are assigned to
>> C-h.  Where this assignment was done?

In ANSI X3.4 (the ASCII standard)!  Backspace IS control-H.  Now in
principle the code sent by the backspace key can be modified I think.

>> NB:(1) When I use emacstool, all left function keys are fine.

This implies that emacstool fixes the keypad mappings to be what emacs
expects.   Are you avoiding using it for a good reason?  If so, then
the code in it should maybe be moved into emacs if possible.

>>    (2) I don't have my own .ttyswrc in my home directory.

Looks like this can help from the manual page.  emacstool must do
something simliar, so look at its source maybe.

Disclaimer: I run X on my Sun, and hate function keys anyway!

/jr
jr@bbn.com or jr@bbn.uucp