[gnu.emacs] Novice .emacs question

leo@duttnph.tudelft.nl (Leo Breebaart) (06/19/89)

I have just installed GNU Emacs version 18.52 on a Sun 3 as well as
a Sun 4, both running SunOS 4.0 (Export Version). I am accessing these
machines from a greasy VT100 terminal, and I want to use Emacs with
the VAX/VMS EDT editor emulator distributed in the lisp file 'edt.el'.

Of course, there is a problem. And I am not hestitating in taking
this problem to the net: my system configurations are not rare or exotic
ones, so I really think *somebody* will have encountered this same
problem, whether it's a bug, or whether I am doing something wrong
(much more likely!).

The problem: the PF1-keypad combinations do not work. All other key
bindings (single keypad keys, PF1-key*board* combinations) work
perfectly.
More specific example: the combination PF1-[keypad]4 inserts the string
"Ot" in my current buffer, and beeps because - naturally - the
combination "ESC-O-P ESC" is not bound to any function.

So how do I get PF1-4 to bind to the entire "ESC-O-P ESC-O-t" string?

(Note: I have not changed one character in either the Emacs C-code or
the edt.el lisp-code before or after compilation, except for inserting 
the appropriate m- and s- header files.)

I hope that this turns out to be a very simple question. My thanks in
advance to anybody kind enough to help me.

Leo Breebaart (leo @ duttnph.UUCP)

dsmythe@cup.portal.com (dave l smythe) (09/04/89)

Hi.  I'd like to map some functions to my Sun function keys but can't
seem to get it to work from .emacs.  When I try C-h c on an unchanged
F9 key, it says something to the effect that C-X * i t has nothing 
mapped to it.  When I use something of the form (global-set-key "\C-x*it" ...)
in .emacs, there seems to be no effect.  I tries making a local copy
of sun-keys.el and modifying the keymap with the Rn keys (arrow keys)
but couldn't get that to work either.  What's the answer?  I'm using
GNU emacs 18.49.2 on a Sun 3/60 and the installation is fairly generic,
I believe (no hackers/gurus here...).

Also, are there diffs to go from 18.49.2 to the latest version available to
non-ftp and non-uucp users?  (i.e. I am looking for an email archive)

Thanks,
Dave Smythe      dsmythe@cup.portal.com

vail@tegra.UUCP (Johnathan Vail) (09/05/89)

In article <21843@cup.portal.com> dsmythe@cup.portal.com (dave l smythe) writes:

   Hi.  I'd like to map some functions to my Sun function keys but can't
   seem to get it to work from .emacs.  When I try C-h c on an unchanged
   F9 key, it says something to the effect that C-X * i t has nothing 
   mapped to it.  When I use something of the form (global-set-key "\C-x*it" ...)
   in .emacs, there seems to be no effect.  I tries making a local copy
   of sun-keys.el and modifying the keymap with the Rn keys (arrow keys)


The problem is that there are other things loaded after .emacs that
will change things on you.  There are more elegant ways to fix it but
here is my work-around to set Sun function keys:


    (defun kluge-start ()
      "do the inits that can't be done in the init file (bletch!)"

      (global-set-key "\C-x*bt" 'eval-defun))	; F2 key, mint 'try-it'


    (setq window-setup-hook 'kluge-start)


"... until then, any action will be like trying to herd cats." -- Gene Spafford
 _____
|     | Johnathan Vail | tegra!N1DXG@ulowell.edu
|Tegra| (508) 663-7435 | N1DXG@145.110-,145.270-,444.2+,448.625-
 -----