Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: Mapping keys. Message-ID: <9103270712.AA09645@lightning.McRCIM.McGill.EDU> Date: 27 Mar 91 07:12:58 GMT Sender: tytso@athena.mit.edu (Theodore Y. Ts'o) Organization: The Internet Lines: 39 > To re-map the numeric keypad from numbers to escape sequences, would > you do it in the > a: client > b: window manager > c: server > d: all of the above > e: none of the above > f: a and b > g: b and c > h: a and c Technically, the answer is a. The client has to be convinced to re-interpret the KeyPress event for the desired keycode as corresponding to a whole string of characters instead of what it normally would be. Many clients (those based on Xt, typically) have a Translations resource you can set which controls this; you could do something like fooclient*Translations: \ KP_0: string(0x1b) string("KP0") which would (if I have the syntax right - I never use this mechanism) cause the keypad 0 key to turn into the string ESC K P 0 (ESC is 0x1b). If you put such a resource in the resource manager, the server is involved in that it stores the RESOURCE_MANAGER property, but that hardly counts. I don't know what your variant of emacs (you don't say what emacs you're using) does for this, so I can't offer specific advice. If the translations mechanism doesn't work, I'd have to start reading documentation, or if you have source poking around in it. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu