[comp.emacs] how do I rebind X windows F-keys?

straz@MEDIA-LAB.MEDIA.MIT.EDU (Steve Strassmann) (10/23/90)

When I use X windows, I have function keys such as Execute, Menu, F1,
F2, etc.  (At least these are the names used by X programs like
xmodmap and xev). When I type these into emacs, they generate escape
sequences like these:

     f1 = esc [ 1 1 ~       (five ASCII characters)
     f2 = esc [ 1 2 ~
     f3 = esc [ 1 3 ~
 select = esc [ 4 ~
   menu = esc [ 2 9 ~
execute = esc [ - 1 ~
  break = esc [ - 1 ~
   stop = esc [ - 1 ~

(1) What's the best way to bind such keys to my favorite function?
(2) Is there a way to disambiguate Execute, Break, and Stop? 

It seems meta-[ is already bound to backward-paragraph, so it seems
meta-[ is not a valid prefix character in the sense of, say, ctrl-X.

ps. my machine is an HP 9000/835 running HP-UX 7.0, X11.2 (latest
vendor release), gnuemacs version 18.55.2. Please reply directly to
me, since I'm not on the info-gnu-emacs list.

Thanks,
 Steve Strassmann
 straz@media-lab.media.mit.edu

david@WUBIOS.WUSTL.EDU (David J. Camp) (10/23/90)

In Reply to this Note From: <Steve Strassmann>
[text deleted]
>
>It seems meta-[ is already bound to backward-paragraph, so it seems
>meta-[ is not a valid prefix character in the sense of, say, ctrl-X.

I think you must unbind it before binding the longer sequences.

david@wubios.wustl.edu                 ^        Mr. David J. Camp
david%wubios@wugate.wustl.edu        < * >      +1 314 382 0584
...!uunet!wugate!wubios!david          v
                                            "God loves material things."