From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#53003: 29.0.50; Wrong key modifiers Date: Tue, 04 Jan 2022 19:31:51 +0200 Organization: LINKOV.NET Message-ID: <867dbfpj34.fsf@mail.linkov.net> References: <86tuekgdsv.fsf@mail.linkov.net> <87mtkbaa1w.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4962"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 53003@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 04 18:52:39 2022 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 1n4nzC-00017b-En for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jan 2022 18:52:38 +0100 Original-Received: from localhost ([::1]:56788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4nzB-0000tA-AR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Jan 2022 12:52:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37004) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4nyg-0000pX-0G for bug-gnu-emacs@gnu.org; Tue, 04 Jan 2022 12:52:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55303) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4nyd-0001Py-Jm for bug-gnu-emacs@gnu.org; Tue, 04 Jan 2022 12:52:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n4nyd-0002XK-JY for bug-gnu-emacs@gnu.org; Tue, 04 Jan 2022 12:52:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jan 2022 17:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53003 X-GNU-PR-Package: emacs Original-Received: via spool by 53003-submit@debbugs.gnu.org id=B53003.16413186999660 (code B ref 53003); Tue, 04 Jan 2022 17:52:03 +0000 Original-Received: (at 53003) by debbugs.gnu.org; 4 Jan 2022 17:51:39 +0000 Original-Received: from localhost ([127.0.0.1]:38604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4nyF-0002Vk-3A for submit@debbugs.gnu.org; Tue, 04 Jan 2022 12:51:39 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:42889) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n4nyD-0002VS-7f for 53003@debbugs.gnu.org; Tue, 04 Jan 2022 12:51:38 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id B48726000D; Tue, 4 Jan 2022 17:51:29 +0000 (UTC) In-Reply-To: <87mtkbaa1w.fsf@yahoo.com> (Po Lu's message of "Tue, 04 Jan 2022 21:46:03 +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" Xref: news.gmane.io gmane.emacs.bugs:223651 Archived-At: > 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.