* Combining Ctrl + Super_l + ' (quote) does not work
@ 2008-11-12 20:26 Yarek Kowalik
2008-11-12 20:32 ` Yarek Kowalik
2008-11-12 22:49 ` Peter Dyballa
0 siblings, 2 replies; 10+ messages in thread
From: Yarek Kowalik @ 2008-11-12 20:26 UTC (permalink / raw
To: help-gnu-emacs
I'm running GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d
scroll bars) of 2008-05-02 on king, modified by Ubuntu
I have some commands bound to C-s-'. It fails with the right side key
combination, but on the left. That is, it works when I press Ctrl_r +
Super_r + ', and not but when I press Ctrl_l + Super_l + '. Ctrl_l +
' is recognized as C+' and Super_l + ' is recognized as s-', but
strangely combining Ctrl_l and Super_L does not produce C-s-.
It's a command I use often, and this is highly annoying as it works
fine on my x86 laptop where I run GNU Emacs 22.1.1 (i486-pc-linux-gnu,
X toolkit, Xaw3d scroll bars) of 2008-05-03 on terranova, modified by
Ubuntu.
Any clue where I need to tweak to make this work?
Yarek
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-12 20:26 Combining Ctrl + Super_l + ' (quote) does not work Yarek Kowalik
@ 2008-11-12 20:32 ` Yarek Kowalik
2008-11-12 22:49 ` Peter Dyballa
1 sibling, 0 replies; 10+ messages in thread
From: Yarek Kowalik @ 2008-11-12 20:32 UTC (permalink / raw
To: help-gnu-emacs
On Nov 12, 12:26 pm, Yarek Kowalik <yarek.kowa...@gmail.com> wrote:
> I'm running GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d
> scroll bars) of 2008-05-02 on king, modified by Ubuntu
>
> I have some commands bound to C-s-'. It fails with the right side key
> combination, but on the left. That is, it works when I press Ctrl_r +
> Super_r + ', and not but when I press Ctrl_l + Super_l + '. Ctrl_l +
> ' is recognized as C+' and Super_l + ' is recognized as s-', but
> strangely combining Ctrl_l and Super_L does not produce C-s-.
>
> It's a command I use often, and this is highly annoying as it works
> fine on my x86 laptop where I run GNU Emacs 22.1.1 (i486-pc-linux-gnu,
> X toolkit, Xaw3d scroll bars) of 2008-05-03 on terranova, modified by
> Ubuntu.
>
> Any clue where I need to tweak to make this work?
>
> Yarek
I also tried all other combinations of [Ctrl_L | Ctrl_R] + [Super_L |
Super_R] + ', and the only that does not work is the Ctrl_L + Super_L
+ '.
Yarek
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-12 20:26 Combining Ctrl + Super_l + ' (quote) does not work Yarek Kowalik
2008-11-12 20:32 ` Yarek Kowalik
@ 2008-11-12 22:49 ` Peter Dyballa
2008-11-12 23:09 ` Yarek Kowalik
[not found] ` <mailman.209.1226536048.26697.help-gnu-emacs@gnu.org>
1 sibling, 2 replies; 10+ messages in thread
From: Peter Dyballa @ 2008-11-12 22:49 UTC (permalink / raw
To: Yarek Kowalik; +Cc: help-gnu-emacs
Am 12.11.2008 um 21:26 schrieb Yarek Kowalik:
> Any clue where I need to tweak to make this work?
You need to do it in X. The command 'xmodmap -pm' should print that
both control and both super modifiers have an equal meaning, although
the system can distinguish between them. Something like this should
be shown:
xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x40), Shift_R (0x44)
lock Caps_Lock (0x41)
control Control_L (0x43), Control_R (0x46)
mod1 Mode_switch (0x42), Mode_switch (0x45)
mod2 Meta_L (0x3f)
mod3 Super_L (0x2a), Super_R (0x2f)
mod4
mod5
With xmodmap you can make your right and left modifier variants be
"on the same level." Xmodmap can use kind of a "script," a file
~/.xmodmaprc that adjusts the details, which is invoked from
~/.xinitrc before the first X client is launched.
GNU Emacs relies on X11.
--
Greetings
Pete
"We need a president who's fluent in at least one language."
– Buck Henry
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-12 22:49 ` Peter Dyballa
@ 2008-11-12 23:09 ` Yarek Kowalik
2008-11-14 0:08 ` Peter Dyballa
[not found] ` <mailman.209.1226536048.26697.help-gnu-emacs@gnu.org>
1 sibling, 1 reply; 10+ messages in thread
From: Yarek Kowalik @ 2008-11-12 23:09 UTC (permalink / raw
To: Peter Dyballa; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 2650 bytes --]
I tried doing the "add" command with xmodmap (see below), and that didn't
work.
There are two comments on this:
1) the default xmodmap is identical between x86 and amd64 machines, yet the
amd64 is not working. Doing xmodmap "add" does not help -- I even tried
restarting emacs
2) note that Ctrl_R + *Super_L* + ' works fine, but Ctrl_L + *Super_L* + '
does not. It's the left Ctrl with left Super that's not functioning.
It's baffling. Any other thoughts?
Yarek
phoenix% xmodmap
xmodmap: up to 3 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), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
phoenix% xmodmap -e "add mod4 = Super_R"
phoenix% xmodmap
xmodmap: up to 3 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), Meta_L (0x9c)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x7f), Hyper_L (0x80), Super_R (0x74)
mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
On Wed, Nov 12, 2008 at 2:49 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 12.11.2008 um 21:26 schrieb Yarek Kowalik:
>
> Any clue where I need to tweak to make this work?
>>
>
>
> You need to do it in X. The command 'xmodmap -pm' should print that both
> control and both super modifiers have an equal meaning, although the system
> can distinguish between them. Something like this should be shown:
>
> xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
>
> shift Shift_L (0x40), Shift_R (0x44)
> lock Caps_Lock (0x41)
> control Control_L (0x43), Control_R (0x46)
> mod1 Mode_switch (0x42), Mode_switch (0x45)
> mod2 Meta_L (0x3f)
> mod3 Super_L (0x2a), Super_R (0x2f)
> mod4
> mod5
>
> With xmodmap you can make your right and left modifier variants be "on the
> same level." Xmodmap can use kind of a "script," a file ~/.xmodmaprc that
> adjusts the details, which is invoked from ~/.xinitrc before the first X
> client is launched.
>
> GNU Emacs relies on X11.
>
> --
> Greetings
>
> Pete
>
> "We need a president who's fluent in at least one language."
> – Buck Henry
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 4409 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
[not found] ` <mailman.209.1226536048.26697.help-gnu-emacs@gnu.org>
@ 2008-11-13 21:49 ` Yarek Kowalik
2008-11-13 21:55 ` Joost Kremers
2008-11-14 0:02 ` Drew Adams
0 siblings, 2 replies; 10+ messages in thread
From: Yarek Kowalik @ 2008-11-13 21:49 UTC (permalink / raw
To: help-gnu-emacs
Does anyone know how to trace key presses in emacs?
Yarek
On Nov 12, 3:09 pm, "Yarek Kowalik" <yarek.kowa...@gmail.com> wrote:
> I tried doing the "add" command with xmodmap (see below), and that didn't
> work.
> There are two comments on this:
>
> 1) the default xmodmap is identical between x86 and amd64 machines, yet the
> amd64 is not working. Doing xmodmap "add" does not help -- I even tried
> restarting emacs
>
> 2) note that Ctrl_R + *Super_L* + ' works fine, but Ctrl_L + *Super_L* + '
> does not. It's the left Ctrl with left Super that's not functioning.
>
> It's baffling. Any other thoughts?
>
> Yarek
>
> phoenix% xmodmap
> xmodmap: up to 3 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), Meta_L (0x9c)
> mod2 Num_Lock (0x4d)
> mod3
> mod4 Super_L (0x7f), Hyper_L (0x80)
> mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
>
> phoenix% xmodmap -e "add mod4 = Super_R"
> phoenix% xmodmap
> xmodmap: up to 3 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), Meta_L (0x9c)
> mod2 Num_Lock (0x4d)
> mod3
> mod4 Super_L (0x7f), Hyper_L (0x80), Super_R (0x74)
> mod5 Mode_switch (0x5d), ISO_Level3_Shift (0x7c)
>
> On Wed, Nov 12, 2008 at 2:49 PM, Peter Dyballa <Peter_Dyba...@web.de> wrote:
>
> > Am 12.11.2008 um 21:26 schrieb Yarek Kowalik:
>
> > Any clue where I need to tweak to make this work?
>
> > You need to do it in X. The command 'xmodmap -pm' should print that both
> > control and both super modifiers have an equal meaning, although the system
> > can distinguish between them. Something like this should be shown:
>
> > xmodmap: up to 2 keys per modifier, (keycodes in parentheses):
>
> > shift Shift_L (0x40), Shift_R (0x44)
> > lock Caps_Lock (0x41)
> > control Control_L (0x43), Control_R (0x46)
> > mod1 Mode_switch (0x42), Mode_switch (0x45)
> > mod2 Meta_L (0x3f)
> > mod3 Super_L (0x2a), Super_R (0x2f)
> > mod4
> > mod5
>
> > With xmodmap you can make your right and left modifier variants be "on the
> > same level." Xmodmap can use kind of a "script," a file ~/.xmodmaprc that
> > adjusts the details, which is invoked from ~/.xinitrc before the first X
> > client is launched.
>
> > GNU Emacs relies on X11.
>
> > --
> > Greetings
>
> > Pete
>
> > "We need a president who's fluent in at least one language."
> > – Buck Henry
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-13 21:49 ` Yarek Kowalik
@ 2008-11-13 21:55 ` Joost Kremers
2008-11-14 0:02 ` Drew Adams
1 sibling, 0 replies; 10+ messages in thread
From: Joost Kremers @ 2008-11-13 21:55 UTC (permalink / raw
To: help-gnu-emacs
Yarek Kowalik wrote:
> Does anyone know how to trace key presses in emacs?
C-h l
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-13 21:49 ` Yarek Kowalik
2008-11-13 21:55 ` Joost Kremers
@ 2008-11-14 0:02 ` Drew Adams
1 sibling, 0 replies; 10+ messages in thread
From: Drew Adams @ 2008-11-14 0:02 UTC (permalink / raw
To: 'Yarek Kowalik', help-gnu-emacs
> Does anyone know how to trace key presses in emacs?
C-h f open-dribble-file
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-12 23:09 ` Yarek Kowalik
@ 2008-11-14 0:08 ` Peter Dyballa
2008-11-14 7:42 ` Yarek Kowalik
0 siblings, 1 reply; 10+ messages in thread
From: Peter Dyballa @ 2008-11-14 0:08 UTC (permalink / raw
To: Yarek Kowalik; +Cc: help-gnu-emacs
Am 13.11.2008 um 00:09 schrieb Yarek Kowalik:
> 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)
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.
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-14 0:08 ` Peter Dyballa
@ 2008-11-14 7:42 ` Yarek Kowalik
2008-11-15 10:17 ` Peter Dyballa
0 siblings, 1 reply; 10+ messages in thread
From: Yarek Kowalik @ 2008-11-14 7:42 UTC (permalink / raw
To: Peter Dyballa; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 2746 bytes --]
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
On Thu, Nov 13, 2008 at 4:08 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 13.11.2008 um 00:09 schrieb Yarek Kowalik:
>
> 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)
>>
>
> 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.
>
> 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.
>
>
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 4232 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Combining Ctrl + Super_l + ' (quote) does not work
2008-11-14 7:42 ` Yarek Kowalik
@ 2008-11-15 10:17 ` Peter Dyballa
0 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2008-11-15 10:17 UTC (permalink / raw
To: Yarek Kowalik; +Cc: help-gnu-emacs
Am 14.11.2008 um 08:42 schrieb Yarek Kowalik:
> 64 0xffe9 (Alt_L) 0xffe7 (Meta_L)
> 113 0xffea (Alt_R) 0xffe8 (Meta_R)
This is nonsense! A modifier key can't be modified by another, the
Shift, key. Each modifier key has to be a single. Otherwise: is A-S-a
meant or is it M-a?
--
Greetings
Pete
If my theory of relativity is proven successful, Germany will claim
me as a German, and France will declare that I am a citizen of the
world. Should my theory prove untrue, France will say that I am a
German, and Germany will declare that I am a Jew.
– Albert Einstein, 1929
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2008-11-15 10:17 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 20:26 Combining Ctrl + Super_l + ' (quote) does not work Yarek Kowalik
2008-11-12 20:32 ` Yarek Kowalik
2008-11-12 22:49 ` Peter Dyballa
2008-11-12 23:09 ` Yarek Kowalik
2008-11-14 0:08 ` Peter Dyballa
2008-11-14 7:42 ` Yarek Kowalik
2008-11-15 10:17 ` Peter Dyballa
[not found] ` <mailman.209.1226536048.26697.help-gnu-emacs@gnu.org>
2008-11-13 21:49 ` Yarek Kowalik
2008-11-13 21:55 ` Joost Kremers
2008-11-14 0:02 ` Drew Adams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).