From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b9a,4adf62720db702aa X-Google-Attributes: gid102b9a,public X-Google-Thread: 1164f8,4adf62720db702aa X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-08-18 05:03:48 PST Xref: sparky comp.emacs:2884 comp.sys.dec:4592 Path: sparky!uunet!dtix!darwin.sura.net!mips!sdd.hp.com!caen!destroyer!sharkey!applga!aa.cad.slb.com!braun From: braun@mailhost.aa.cad.slb.com (Matthew Braun) Newsgroups: comp.emacs,comp.sys.dec Subject: Re: Remove key on DECstation under Xwindows Message-ID: <1992Aug17.125552.7235@aa.cad.slb.com> Date: 17 Aug 92 12:55:52 GMT References: <1992Aug13.151752.8531@mailhost.aa.cad.slb.com> Sender: usenet@aa.cad.slb.com (Usenet Administrator) Organization: Schlumberger CAD/CAM; Ann Arbor, Michigan (USA) In article <1992Aug13.151752.8531> (Matthew Braun) writes: >Info: DECstation 5000/200, LK201 keyboard, X11R4, twm or mwm > >Can anyone think of a reason the Remove key would send ^[[3~ to a xterm >window and send nothing to an emacs window? > Summary: The problem described above seemed to be a problem with both the DECstation's Remove key being defined strange and emacs not supporting all the keys provided in X include file X11/keysymdef.h. The emacs source file x11term.c is where the X KeyPress events are processed, and there you can follow the program and find out how emacs handles them. There were two possible solutions: 1. As almost everyone stated, you can modify the x11term.c source and recompile, which would be really easy to do after looking at the code. But I don't administrate the computers here, so I was looking for a way around doing that. 2. Another way was to redefine the keyboard with 'xmodmap'. I just redefined the Remove key to the Do/Menu/F16 (all equivalent names) key. This produced the code ^[[29~ which is recognized as a valid key stroke in emacs. [Note that this would leave you with two keys the same as defined in the xmodmap. But, I also redefined the Do/Menu key to the Caps_Lock key because I redefined the normal Lock key to the Control_R key.] Other responses were that I could use epoch to solve this problem. I have no idea what epoch is, so I don't know what it does. Another person said it worked fine on his system which was configured the same as mine, maybe someone already patched his emacs. Thanks to all that replied: "Hamish (H.I.) Macdonald" Andy Harp Craig Fisher Chris Siebenmann Matthew. --------------- internet: braun@falcon.aa.cad.slb.com