Thanks for the tips. I used xev to get the kecodes conformed. I tried making the changes you suggested, and here is what I got:
phoenix% xmodmap
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_R (0x71)
mod2
mod3 Hyper_L (0x80)
mod4 Super_L (0x73), Super_R (0x74)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
Note the absence of Meta_L and Meta_R: whenever I tried "add mod2 = Meta_L and Meta_R" it would register as "Alt_L and Alt_R" and then Alt modifier commands would stop working. I could not produce Meta_L and Meta_R in xev, and xmodmap reports these as:
64 0xffe9 (Alt_L) 0xffe7 (Meta_L)
113 0xffea (Alt_R) 0xffe8 (Meta_R)
In any event, the after making the changes above it still did not fix the original problem. I still cannot get C-s-' but only on Control_L + Super_L + ' . Super_R works fine, and Super_L works fine with Control_R too.
I'm a little confused why all this xmodmap is necessary.. I can get s-'
working on both Super_L and Super_R just fine, as well as C-' with
Control_L and Control_R. and I can get C-s-' with any combo of Control and Super with exception of C_L and S_L. I'm having a feeling that it's more emacs thing than xmodmap thing.
Thanks for the suggestions... keep them coming if you spot something worth trying.
Cheers,
Yarek
Am 13.11.2008 um 00:09 schrieb Yarek Kowalik:Alt and Meta are the same – not good. Throw away Num_Lock and put Meta into its slot. Then move Hyper to mod3. Now you can add Super_R as another mod4.
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x6d)
mod1 Alt_L (0x40), Alt_R (0x71), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
Before you can add any modifier you first need to declare it as a key, for example (with decimal number):
keycode 116 = Super_R
The utility xev can tell you the key's code. Once it's defined, xmodmap -pk should list it. Then you can make it a modifier.
As an example one of my corrections works like this:
clear Mod1
add Mod1 = Alt_L Alt_R
clear Mod2
add Mod2 = Meta_L Meta_R
--
Greetings
Pete
Globalisation – communism from above.