home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / emacs / 2884 < prev    next >
Encoding:
Internet Message Format  |  1992-08-18  |  2.3 KB

  1. Xref: sparky comp.emacs:2884 comp.sys.dec:4592
  2. Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!caen!destroyer!sharkey!applga!aa.cad.slb.com!braun
  3. From: braun@mailhost.aa.cad.slb.com (Matthew Braun)
  4. Newsgroups: comp.emacs,comp.sys.dec
  5. Subject: Re: Remove key on DECstation under Xwindows
  6. Message-ID: <1992Aug17.125552.7235@aa.cad.slb.com>
  7. Date: 17 Aug 92 12:55:52 GMT
  8. References: <1992Aug13.151752.8531@mailhost.aa.cad.slb.com>
  9. Sender: usenet@aa.cad.slb.com (Usenet Administrator)
  10. Organization: Schlumberger CAD/CAM; Ann Arbor, Michigan (USA)
  11. Lines: 44
  12.  
  13. In article <1992Aug13.151752.8531> (Matthew Braun) writes:
  14. >Info:  DECstation 5000/200, LK201 keyboard, X11R4, twm or mwm
  15. >
  16. >Can anyone think of a reason the Remove key would send ^[[3~ to a xterm
  17. >window and send nothing to an emacs window?
  18. >
  19.  
  20. Summary:
  21.  
  22. The problem described above seemed to be a problem with both the
  23. DECstation's Remove key being defined strange and emacs not supporting all
  24. the keys provided in X include file X11/keysymdef.h.  The emacs source
  25. file x11term.c is where the X KeyPress events are processed, and there you
  26. can follow the program and find out how emacs handles them.
  27.  
  28. There were two possible solutions:
  29.  
  30.   1. As almost everyone stated, you can modify the x11term.c source and
  31. recompile, which would be really easy to do after looking at the code.
  32. But I don't administrate the computers here, so I was looking for a way
  33. around doing that.
  34.  
  35.   2. Another way was to redefine the keyboard with 'xmodmap'.  I just
  36. redefined the Remove key to the Do/Menu/F16 (all equivalent names) key.
  37. This produced the code ^[[29~ which is recognized as a valid key stroke in
  38. emacs.  [Note that this would leave you with two keys the same as defined
  39. in the xmodmap.  But, I also redefined the Do/Menu key to the Caps_Lock
  40. key because I redefined the normal Lock key to the Control_R key.]
  41.  
  42. Other responses were that I could use epoch to solve this problem.  I have
  43. no idea what epoch is, so I don't know what it does.  Another person said
  44. it worked fine on his system which was configured the same as mine, maybe
  45. someone already patched his emacs.
  46.  
  47. Thanks to all that replied:
  48.    "Hamish (H.I.) Macdonald" <hamish@x400gate.bnr.ca>
  49.    Andy Harp <aharp@hermes.mod.uk>
  50.    Craig Fisher <fisher@sifvx6.sinet.slb.com>
  51.    Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>
  52.  
  53.  
  54. Matthew.
  55. ---------------
  56. internet: braun@falcon.aa.cad.slb.com
  57.