From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 20:21:39 +0200 Message-ID: <83msv09xzg.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25786"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67458@debbugs.gnu.org To: Eval Exec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 26 19:23:17 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 1r7Jmm-0006TI-7a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 26 Nov 2023 19:23:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r7JmU-00089s-N9; Sun, 26 Nov 2023 13:22:58 -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 1r7JmT-00089g-AG for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:22:57 -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 1r7JmS-0001g0-SB for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:22:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r7JmY-0007KM-2Q for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2023 13:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2023 18:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67458 X-GNU-PR-Package: emacs Original-Received: via spool by 67458-submit@debbugs.gnu.org id=B67458.170102293028109 (code B ref 67458); Sun, 26 Nov 2023 18:23:02 +0000 Original-Received: (at 67458) by debbugs.gnu.org; 26 Nov 2023 18:22:10 +0000 Original-Received: from localhost ([127.0.0.1]:42701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7Jlh-0007JJ-Lk for submit@debbugs.gnu.org; Sun, 26 Nov 2023 13:22:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r7Jlg-0007J5-Bb for 67458@debbugs.gnu.org; Sun, 26 Nov 2023 13:22:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r7JlU-0001Xf-Be; Sun, 26 Nov 2023 13:21:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=OauoxZjwnxLQuNEXz5ObHal+jb/yUH1nfs9Acixt28U=; b=SwSoSfbZtriY xSPJX3UOXgvzwCIZhyG1sIpMPlF+bCnJzZHgOXxVj+MB/mVeplUg88NXohckZ/2fDaWit9/AXdZjM KbdFFBAWV2lkzh4ICYferU3ApfOhzRoJpyKlDdgygdLQQfmII0zPMLbXlqV8NopqQzS543DOE49pJ AK0J3WjvUgP/LgNLmDL1bySrv4hkQuv9/vIHKPgtDYdz8difrtt+47xoLBtVsawOgbzQzhBL3FY3O H21y/VCJDDmqI7sFanmzBVVtf0GtYk/DWyf6XKar2tINorUzy3icLnBP47i3kQsgHI9oysZHrA2OC ZUOnhbKJ25IQaqRkl/tB+A==; In-Reply-To: (message from Eval Exec on Sun, 26 Nov 2023 18:31:31 +0800) 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:275079 Archived-At: > From: Eval Exec > 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.