Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!novavax!hcx1!tom From: tom@ssd.harris.com (Tom Horsley) Newsgroups: comp.windows.x Subject: Re: Emacs under X11 Message-ID: Date: 9 Oct 89 11:28:42 GMT References: <1385@raybed2.UUCP> Sender: news@hcx1.UUCP Distribution: usa Organization: Harris Computer Systems Division Lines: 29 In-reply-to: mwc@raybed2.UUCP's message of 5 Oct 89 12:13:32 GMT I had to go into the emacs source to find out why it could not bind all the keys when I used it on a Sun and you probably have the same problem. It is complicated to explain in detail, but basically emacs (at least the Gnu emacs version 18.52 we are using) refuses to acknowledge any keypress events except those belonging to function key keysyms (XK_F1, XK_F2, etc). It also refuses to look at the shift state for function keys. There are a couple of exceptions to the above description. The Meta key can be used as a modifier for function keys (but not shift or control) and the up, down, right, and left keys are explicitly checked for prior to falling into the code that throws away everything except function keys. In order to use random keys then, you are forced to use xmodmap to map the keys you want to bind into function keys, then you can bind those keys in your .emacs file. There is a comment in the X support code that (correctly) states that emacs should use the XRebindKeysym() routine to support attaching arbitrary strings to arbitrary combinations of keys and shift states, but it does not do it, it just talks about it. I keep hearing rumors about the wonderful X support in version 19, so presumably this problem is fixed there. -- ===================================================================== usenet: tahorsley@ssd.harris.com USMail: Tom Horsley compuserve: 76505,364 511 Kingbird Circle genie: T.HORSLEY Delray Beach, FL 33444 ======================== Aging: Just say no! ========================