Path: utzoo!attcan!uunet!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!jim From: jim@EXPO.LCS.MIT.EDU (Jim Fulton) Newsgroups: comp.windows.x Subject: Re: XRebindKeysym / Why Modifier Keysyms? / add string() to Xaw? Message-ID: <8811071558.AA12470@EXPO.LCS.MIT.EDU> Date: 7 Nov 88 15:58:00 GMT References: <17596@shemp.CS.UCLA.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: X Consortium, MIT Laboratory for Computer Science Lines: 40 XRebindKeysym does not do global rebinding of strings to keysyms. It is only used to change the local bindings (i.e. the tables used by XLookupString). The xmodmap program is used to change or display the following: o the mapping from keycodes (which are server-dependent, arbitrary numbers correspond to physical keys; sort of like make/break codes) to keysyms (symbolic constants representing the function corresponding to the etching that appears on the key). o the list of keycodes that the server should keep track of and report as modifier bits (e.g. "when the key code 85 is down, set the shift bit in event modifier masks"). o the mapping from physical pointer buttons to logical button constants (e.g. Button1, Button2, etc.) It does not deal with translating keysyms to strings at all. If your application wants actual strings (i.e. if it is manipulating text), you can use the routines XmuLookupLatin1 XmuLookupLatin2 XmuLookupLatin3 XmuLookupLatin4 XmuLookupKana XmuLookupArabic XmuLookupCyrillic XmuLookupGreek XmuLookupAPL XmuLookupHebrew XLookupString The R3 xterm uses the Translation Manager in the X Toolkit so that it can do arbitrary rebinding of events. The hope is that someone [else] will fix emacs to do the same thing soon. Ideally, it would be done by identifying the code in xterm that would be useful in emacs and moving it to Xmu. Jim