unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53003: 29.0.50; Wrong key modifiers
@ 2022-01-04  7:48 Juri Linkov
  2022-01-04 13:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2022-01-04  7:48 UTC (permalink / raw)
  To: 53003

Some recent change broke the Hyper key modifiers.

After this change typing the Hyper key with arrows shows

  s-<right> is undefined

Before this change it was

  H-<right> is undefined

For this key xev reports keycode 133 (keysym 0xffed, Hyper_L)

In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
 of 2022-01-02
Repository revision: b2167d98432a78442522b7564e22f47d75a98b6f
Repository branch: master

Configured using:
 'configure --with-native-compilation --with-xinput2 --with-pgtk '

But it also broken with this:

Configured using:
 'configure --with-native-compilation'





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#53003: 29.0.50; Wrong key modifiers
  2022-01-04  7:48 bug#53003: 29.0.50; Wrong key modifiers Juri Linkov
@ 2022-01-04 13:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-04 17:31   ` Juri Linkov
  0 siblings, 1 reply; 4+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-04 13:46 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 53003

Juri Linkov <juri@linkov.net> writes:

> Some recent change broke the Hyper key modifiers.
>
> After this change typing the Hyper key with arrows shows
>
>   s-<right> is undefined
>
> Before this change it was
>
>   H-<right> is undefined
>
> For this key xev reports keycode 133 (keysym 0xffed, Hyper_L)
>
> In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0)
>  of 2022-01-02
> Repository revision: b2167d98432a78442522b7564e22f47d75a98b6f
> Repository branch: master
>
> Configured using:
>  'configure --with-native-compilation --with-xinput2 --with-pgtk '
>
> But it also broken with this:
>
> Configured using:
>  'configure --with-native-compilation'

Please show the output of `xmodmap'.

Do you see a line where Hyper is on the same line as Super, something
like this?

mod4        Hyper_L (0x42),  Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)

(The keysym reported by xev does not really matter: that is not how X11
virtual modifiers work.)

Many X servers are misconfigured that way, causing Super to be
recognized as Hyper for the majority of users.  The recent switch to
using XKB for detecting virtual modifiers solved that problem, but
potentially caused this one as well.

The correct solution is to remove the Hyper keys from the real modifier
Mod4, and move them to (if not already occupied by another virtual
modifier) Mod5.

But I cannot tell you how to do that in concrete until I see the
output of `xmodmap' on your system.

Thanks.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#53003: 29.0.50; Wrong key modifiers
  2022-01-04 13:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-04 17:31   ` Juri Linkov
  2022-01-05  1:03     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Juri Linkov @ 2022-01-04 17:31 UTC (permalink / raw)
  To: Po Lu; +Cc: 53003

> Please show the output of `xmodmap'.

shift       Shift_L (0x32)
lock
control     Control_L (0x25),  Control_L (0x42),  Control_R (0x69)
mod1        Alt_L (0x40),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3
mod4        Hyper_L (0x85),  Hyper_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

> Do you see a line where Hyper is on the same line as Super, something
> like this?
>
> mod4        Hyper_L (0x42),  Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
>
> (The keysym reported by xev does not really matter: that is not how X11
> virtual modifiers work.)

Indeed, Hyper and Super are on the same line.

> Many X servers are misconfigured that way, causing Super to be
> recognized as Hyper for the majority of users.  The recent switch to
> using XKB for detecting virtual modifiers solved that problem, but
> potentially caused this one as well.
>
> The correct solution is to remove the Hyper keys from the real modifier
> Mod4, and move them to (if not already occupied by another virtual
> modifier) Mod5.
>
> But I cannot tell you how to do that in concrete until I see the
> output of `xmodmap' on your system.

The above xmodmap was created by enabling the option in Keyboard Preferences:
"Alt/Win key behavior" -> "Hyper is mapped to Win".

I tried to disable this option and got such xmodmap:

mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)

and still Super is used instead of Hyper.

But I already replaced all mentions of 'hyper' with 'super' in my init file,
so if you think there is no bug, then you could close this report.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#53003: 29.0.50; Wrong key modifiers
  2022-01-04 17:31   ` Juri Linkov
@ 2022-01-05  1:03     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 4+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-05  1:03 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 53003-done

Juri Linkov <juri@linkov.net> writes:

> shift       Shift_L (0x32)
> lock
> control     Control_L (0x25),  Control_L (0x42),  Control_R (0x69)
> mod1        Alt_L (0x40),  Meta_L (0xcd)
> mod2        Num_Lock (0x4d)
> mod3
> mod4        Hyper_L (0x85),  Hyper_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
> mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)

> But I already replaced all mentions of 'hyper' with 'super' in my init
> file, so if you think there is no bug, then you could close this
> report.

Thanks, closed.
You could try placing this text in your ~/.Xmodmap and loading it, if
you want to gain the use of both Hyper and Super:

  remove mod4 = Hyper_L
  add    mod3 = Hyper_L

Thanks.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-05  1:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04  7:48 bug#53003: 29.0.50; Wrong key modifiers Juri Linkov
2022-01-04 13:46 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-04 17:31   ` Juri Linkov
2022-01-05  1:03     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).