unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland
@ 2023-11-26 10:31 Eval Exec
  2023-11-26 18:21 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Eval Exec @ 2023-11-26 10:31 UTC (permalink / raw)
  To: 67458

Hello, I'm have an Emacs Pgtk build from NixOS's emacs-overlay,
And I Re-maped left ctrl key as Hyper key, and set the Hyper key as Mod3:
```bash
$ xmodmap
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock
control     Control_L (0x42),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Alt_L (0xcc),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3        Hyper_L (0x25),  ISO_Level5_Shift (0xcb),  Hyper_L (0xcf)
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce)
mod5        ISO_Level3_Shift (0x5c)
```

As you can see, `Hyper_L` is `mod3`.

But when I open `emacs-pgtk` and M-x describe-key, then press
`Hyper_L` (original left control) and `p` key, emacs just recognizes
it as a single `p` key. This is not expected. I expect Emacs will
recognize its `H-p` key.

And I can confirm this issue does not happen on non pgtk emacs. Emacs
non-pkgtk  will recognize `Hyper_L` + `p` as `H-p` in `describe-key`.

What information should I provide to help us solve this problem?
Thank you
----------

In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.38, cairo version 1.18.0)
Repository revision: a7c16e73c084848cb5af2552f5221db67ce64536
Repository branch: master
System Description: NixOS 24.05 (Uakari)

Configured using:
 'configure
 --prefix=/nix/store/bp8wxma631sxmxxa89jma2mxa029fl6i-emacs-pgtk-20231126.0
 --disable-build-details --with-modules --with-pgtk
 --with-native-compilation --with-tree-sitter --with-xwidgets'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB

Important settings:
  value of $EMACSLOADPATH:
  value of $EMACSNATIVELOADPATH:
  value of $LC_MONETARY: en_US.UTF-8
  value of $LC_NUMERIC: en_US.UTF-8
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=fcitx
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/nix/store/zg8i60lrdmlm3c3z3a670gai2y4jjrpj-emacs-packages-deps/share/emacs/site-lisp/site-start
hides /nix/store/bp8wxma631sxmxxa89jma2mxa029fl6i-emacs-pgtk-20231126.0/share/emacs/site-lisp/site-start
/nix/store/zg8i60lrdmlm3c3z3a670gai2y4jjrpj-emacs-packages-deps/share/emacs/site-lisp/elpa/transient-20231123.2131/transient
hides /nix/store/bp8wxma631sxmxxa89jma2mxa029fl6i-emacs-pgtk-20231126.0/share/emacs/30.0.50/lisp/transient
/nix/store/zg8i60lrdmlm3c3z3a670gai2y4jjrpj-emacs-packages-deps/share/emacs/site-lisp/elpa/let-alist-1.0.6/let-alist
hides /nix/store/bp8wxma631sxmxxa89jma2mxa029fl6i-emacs-pgtk-20231126.0/share/emacs/30.0.50/lisp/emacs-lisp/let-alist

Features:
(shadow sort mail-extr comp-run comp-common rx emacsbug message mailcap
yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache
epa derived epg rfc6068 epg-config gnus-util text-property-search
time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip
cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd
touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list
replace newcomment text-mode lisp-mode prog-mode register page tab-bar
menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
nadvice seq simple cl-generic indonesian philippine cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop
case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads xwidget-internal dbusbind inotify dynamic-setting
system-font-setting font-render-setting cairo gtk pgtk multi-tty
move-toolbar make-network-process native-compile emacs)

Memory information:
((conses 16 54588 12740) (symbols 48 5436 0) (strings 32 14931 3452)
 (string-bytes 1 514404) (vectors 16 11526)
 (vector-slots 8 274199 8454) (floats 8 22 20) (intervals 56 367 0)
 (buffers 992 12))





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

* bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland
  2023-11-26 10:31 bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland Eval Exec
@ 2023-11-26 18:21 ` Eli Zaretskii
  2023-12-25 14:34   ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-11-26 18:21 UTC (permalink / raw)
  To: Eval Exec; +Cc: 67458

> From: Eval Exec <execvy@gmail.com>
> Date: Sun, 26 Nov 2023 18:31:31 +0800
> 
> Hello, I'm have an Emacs Pgtk build from NixOS's emacs-overlay,
> And I Re-maped left ctrl key as Hyper key, and set the Hyper key as Mod3:
> ```bash
> $ xmodmap
> xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
> 
> shift       Shift_L (0x32),  Shift_R (0x3e)
> lock
> control     Control_L (0x42),  Control_R (0x69)
> mod1        Alt_L (0x40),  Alt_R (0x6c),  Alt_L (0xcc),  Meta_L (0xcd)
> mod2        Num_Lock (0x4d)
> mod3        Hyper_L (0x25),  ISO_Level5_Shift (0xcb),  Hyper_L (0xcf)
> mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce)
> mod5        ISO_Level3_Shift (0x5c)
> ```
> 
> As you can see, `Hyper_L` is `mod3`.
> 
> But when I open `emacs-pgtk` and M-x describe-key, then press
> `Hyper_L` (original left control) and `p` key, emacs just recognizes
> it as a single `p` key. This is not expected. I expect Emacs will
> recognize its `H-p` key.
> 
> And I can confirm this issue does not happen on non pgtk emacs. Emacs
> non-pkgtk  will recognize `Hyper_L` + `p` as `H-p` in `describe-key`.

This is a known problem, see etc/PROBLEMS (search for "PGTK").

Unfortunately, there's no known solution or workaround.





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

* bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland
  2023-11-26 18:21 ` Eli Zaretskii
@ 2023-12-25 14:34   ` Stefan Kangas
  2023-12-25 15:09     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2023-12-25 14:34 UTC (permalink / raw)
  To: Eli Zaretskii, Eval Exec; +Cc: 67458

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Eval Exec <execvy@gmail.com>
>> Date: Sun, 26 Nov 2023 18:31:31 +0800
>>
>> Hello, I'm have an Emacs Pgtk build from NixOS's emacs-overlay,
>> And I Re-maped left ctrl key as Hyper key, and set the Hyper key as Mod3:
>> ```bash
>> $ xmodmap
>> xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
>>
>> shift       Shift_L (0x32),  Shift_R (0x3e)
>> lock
>> control     Control_L (0x42),  Control_R (0x69)
>> mod1        Alt_L (0x40),  Alt_R (0x6c),  Alt_L (0xcc),  Meta_L (0xcd)
>> mod2        Num_Lock (0x4d)
>> mod3        Hyper_L (0x25),  ISO_Level5_Shift (0xcb),  Hyper_L (0xcf)
>> mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce)
>> mod5        ISO_Level3_Shift (0x5c)
>> ```
>>
>> As you can see, `Hyper_L` is `mod3`.
>>
>> But when I open `emacs-pgtk` and M-x describe-key, then press
>> `Hyper_L` (original left control) and `p` key, emacs just recognizes
>> it as a single `p` key. This is not expected. I expect Emacs will
>> recognize its `H-p` key.
>>
>> And I can confirm this issue does not happen on non pgtk emacs. Emacs
>> non-pkgtk  will recognize `Hyper_L` + `p` as `H-p` in `describe-key`.
>
> This is a known problem, see etc/PROBLEMS (search for "PGTK").
>
> Unfortunately, there's no known solution or workaround.

Do we leave this bug open?  Tag it as "help"?  "wontfix"?





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

* bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland
  2023-12-25 14:34   ` Stefan Kangas
@ 2023-12-25 15:09     ` Eli Zaretskii
  2023-12-25 18:17       ` Stefan Kangas
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2023-12-25 15:09 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 67458, execvy

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Mon, 25 Dec 2023 06:34:45 -0800
> Cc: 67458@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Eval Exec <execvy@gmail.com>
> >> Date: Sun, 26 Nov 2023 18:31:31 +0800
> >>
> >> Hello, I'm have an Emacs Pgtk build from NixOS's emacs-overlay,
> >> And I Re-maped left ctrl key as Hyper key, and set the Hyper key as Mod3:
> >> ```bash
> >> $ xmodmap
> >> xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):
> >>
> >> shift       Shift_L (0x32),  Shift_R (0x3e)
> >> lock
> >> control     Control_L (0x42),  Control_R (0x69)
> >> mod1        Alt_L (0x40),  Alt_R (0x6c),  Alt_L (0xcc),  Meta_L (0xcd)
> >> mod2        Num_Lock (0x4d)
> >> mod3        Hyper_L (0x25),  ISO_Level5_Shift (0xcb),  Hyper_L (0xcf)
> >> mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce)
> >> mod5        ISO_Level3_Shift (0x5c)
> >> ```
> >>
> >> As you can see, `Hyper_L` is `mod3`.
> >>
> >> But when I open `emacs-pgtk` and M-x describe-key, then press
> >> `Hyper_L` (original left control) and `p` key, emacs just recognizes
> >> it as a single `p` key. This is not expected. I expect Emacs will
> >> recognize its `H-p` key.
> >>
> >> And I can confirm this issue does not happen on non pgtk emacs. Emacs
> >> non-pkgtk  will recognize `Hyper_L` + `p` as `H-p` in `describe-key`.
> >
> > This is a known problem, see etc/PROBLEMS (search for "PGTK").
> >
> > Unfortunately, there's no known solution or workaround.
> 
> Do we leave this bug open?  Tag it as "help"?  "wontfix"?

The latter, I think.





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

* bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland
  2023-12-25 15:09     ` Eli Zaretskii
@ 2023-12-25 18:17       ` Stefan Kangas
  0 siblings, 0 replies; 5+ messages in thread
From: Stefan Kangas @ 2023-12-25 18:17 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 67458, execvy

tags 67458 + wontfix
close 67458
thanks

Eli Zaretskii <eliz@gnu.org> writes:

>> Do we leave this bug open?  Tag it as "help"?  "wontfix"?
>
> The latter, I think.

Done.





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

end of thread, other threads:[~2023-12-25 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-26 10:31 bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland Eval Exec
2023-11-26 18:21 ` Eli Zaretskii
2023-12-25 14:34   ` Stefan Kangas
2023-12-25 15:09     ` Eli Zaretskii
2023-12-25 18:17       ` Stefan Kangas

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