From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eval Exec Newsgroups: gmane.emacs.bugs Subject: bug#67458: 30.0.50; Emacs Pgtk doesn't recognize Hyper key on Linux Wayland Date: Sun, 26 Nov 2023 18:31:31 +0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9584"; mail-complaints-to="usenet@ciao.gmane.io" To: 67458@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 26 19:20:05 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r7Jjg-0002Mz-RW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Nov 2023 19:20:04 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7JjZ-0007Tl-J1; Sun, 26 Nov 2023 13:19:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7JjY-0007TX-JF for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:19:56 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7JjY-00012i-B3 for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:19:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7Jjd-0007EZ-TO for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:20:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eval Exec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2023 18:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67458 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170102279227780 (code B ref -1); Sun, 26 Nov 2023 18:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Nov 2023 18:19:52 +0000 Original-Received: from localhost ([127.0.0.1]:42683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7JjR-0007Du-0J for submit@debbugs.gnu.org; Sun, 26 Nov 2023 13:19:52 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:40002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7CQe-0006yt-T9 for submit@debbugs.gnu.org; Sun, 26 Nov 2023 05:31:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7CQT-00073N-ES for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 05:31:45 -0500 Original-Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r7CQR-0004rq-O2 for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 05:31:45 -0500 Original-Received: by mail-qv1-xf42.google.com with SMTP id 6a1803df08f44-67a12079162so11843006d6.1 for ; Sun, 26 Nov 2023 02:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700994702; x=1701599502; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=E6tLOw0cmXME19UKd7w8PxqU2k/h5HzAJ/FfPmM3KGA=; b=IEiKJFvZT65UmUtx22TTifhBocyfJDXLDRhTPnhobq/krsPLtc/BRpsb/bVmYqSKq/ yJ5cJuwS3jd61EN9VUxgGf9TG1ru8JZSoyu3v9t/PYKDtDk5g66GtfGuiGZZvItHrObG BFvGqhVygEtSoWgzhtpprmhWD+4/hGvuu3HpWo9iuOKFxhU5nf7BGWmV66XiWpd0gA2U N0egLtK/EbPVdSsQqn1wlch7JtFFFpcPzios6nIVIMceaN/CJQrRZUIZ4OPB48OkfQ7s 8K5Qvh+r2GRvxu6kIVwBCaUC8Pu3SX5raTSs5rQofOZ+3Qtdct2x1MGSEqvuLhs5oJ0o +qhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700994702; x=1701599502; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=E6tLOw0cmXME19UKd7w8PxqU2k/h5HzAJ/FfPmM3KGA=; b=LrKR11yUnWf27jlwdZqo6ajb063WOHjjW6vFpX9pUz///syVo9U4s/2XhPLcWMxVCo jp9mEn5SsgIZCE725LP6jbnktlMJA8Ylx7OMjmLDMZO8jIISOSaAdqB01hWODDK5a0Rl pzW6cbaJkDGeozYIXr6YU6QY0HNqc4u99L3hz11KsPB72qYRwGz68wyLlv9aUThYGfE4 9mbcSElQhHeO7fGWFxI419LUc5HyUuvd5HT8QLFLWXxOwG7H3AtDVqRuZEtzaFEls1St pTDCPIvyeLfcdvR5p7HKHKc+lI00x8QlHtcnCvHf+ZbeBD+alfdqV/wyTsYfX51QbO9K wtJw== X-Gm-Message-State: AOJu0Yw8rqqSI51WXH8RiH0s7a6cihYdk3rWJEGMV/dfifA6ejf72ooU Enrqt+7Y2jM8Atx0COB/yzZBFakqGkKjmsfqVFRiAi92RVHXOUAaUlA= X-Google-Smtp-Source: AGHT+IHJY6wmHzPvl3m7l/TDx0WGlII+WBQhPsKFyyJPKDZpLmdzQenxWR27z6M1AH8aH1iDfjwI5WN6DxiX3LXP6GI= X-Received: by 2002:a05:6214:5845:b0:67a:8df:d444 with SMTP id ml5-20020a056214584500b0067a08dfd444mr8525953qvb.7.1700994702072; Sun, 26 Nov 2023 02:31:42 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::f42; envelope-from=execvy@gmail.com; helo=mail-qv1-xf42.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 26 Nov 2023 13:19:47 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275075 Archived-At: 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))