From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Enrico Scholz via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67070: 29.1; broken keybindings with emacs 29 Date: Wed, 15 Nov 2023 18:55:58 +0100 Message-ID: References: <87pm0gmvgl.fsf@sinclair.bigo.ensc.de> <83zfzgsa3r.fsf@gnu.org> Reply-To: Enrico Scholz Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18046"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Po Lu , 67070@debbugs.gnu.org, Eli Zaretskii To: Eshel Yaron Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 15 18:57:11 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 1r3K8U-0004RI-R7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Nov 2023 18:57:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3K8P-0007ZH-HD; Wed, 15 Nov 2023 12:57:05 -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 1r3K8N-0007Ue-FL for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 12:57:03 -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 1r3K8N-0002r9-6I for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 12:57:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3K8M-00020i-A9 for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 12:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Enrico Scholz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Nov 2023 17:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67070 X-GNU-PR-Package: emacs Original-Received: via spool by 67070-submit@debbugs.gnu.org id=B67070.17000709687666 (code B ref 67070); Wed, 15 Nov 2023 17:57:02 +0000 Original-Received: (at 67070) by debbugs.gnu.org; 15 Nov 2023 17:56:08 +0000 Original-Received: from localhost ([127.0.0.1]:53734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3K7U-0001zZ-D2 for submit@debbugs.gnu.org; Wed, 15 Nov 2023 12:56:08 -0500 Original-Received: from smtpout-3.cvg.de ([2003:49:a034:1067:5::3]:55622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3K7P-0001z1-Uu for 67070@debbugs.gnu.org; Wed, 15 Nov 2023 12:56:07 -0500 Original-Received: from mail-mta-2.intern.sigma-chemnitz.de (mail-mta-2.intern.sigma-chemnitz.de [192.168.12.70]) by mail-out-3.intern.sigma-chemnitz.de (8.17.1/8.17.1) with ESMTPS id 3AFHu1TK1590072 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK) for <67070@debbugs.gnu.org>; Wed, 15 Nov 2023 18:56:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigma-chemnitz.de; s=v2022040800; t=1700070962; bh=DDjGVodIsY1jwpAqMdrkt4NyXEqEwPn//0MPP7d6Atg=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=Wtire7/iwDMyrSqlx4oMxgUcu91PHH984nPFdE6F8h31FHVHImA9U6FUfqgwOoKT8 y+HIgJlOCJbQtDD4MxKhb6fqHFH/o9/M7thIihWkb+7z4NF/Y56KeCogAHH0OOvSF/ ZxlsiapfaprFdQgWOJBQsmjErxWRJaBXcvBeNTD2VE/+rHHj+hpByzlYUdt6FcQHM9 Ukymt61cA4gHGuDZutgU7/0fU4iUjeaGRAWJJQy6SHeI8Vs6A15eGOWxPBM/JfKroq wUdu9Mt5FlbYJPE7ZTC1tbxlK4/40LnTuKHy3KYOtJubjU7SaYXw0d9rnXbqIaXNfB mga6aoFD62aKQ== Original-Received: from reddoxx.intern.sigma-chemnitz.de (reddoxx.sigma.local [192.168.16.32]) by mail-mta-2.intern.sigma-chemnitz.de (8.17.1/8.17.1) with ESMTP id 3AFHtxKR1021912 for <67070@debbugs.gnu.org> from enrico.scholz@sigma-chemnitz.de; Wed, 15 Nov 2023 18:56:00 +0100 Original-Received: from mail-msa-3.intern.sigma-chemnitz.de ([192.168.12.73]) by reddoxx.intern.sigma-chemnitz.de with ESMTP id 2CVBZ1DUFQ; Wed, 15 Nov 2023 18:55:59 +0100 Original-Received: from ensc-pc.intern.sigma-chemnitz.de (ensc-pc.intern.sigma-chemnitz.de [192.168.3.24]) by mail-msa-3.intern.sigma-chemnitz.de (8.15.2/8.15.2) with ESMTPS id 3AFHtwxc1552817 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 15 Nov 2023 18:55:58 +0100 Original-Received: from ensc by ensc-pc.intern.sigma-chemnitz.de with local (Exim 4.96.2) (envelope-from ) id 1r3K7K-002zE7-0P; Wed, 15 Nov 2023 18:55:58 +0100 In-Reply-To: (Eshel Yaron's message of "Tue, 14 Nov 2023 16:10:24 +0100") X-REDDOXX-Id: 6555062fa867f08c5daee9fb 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:274407 Archived-At: Eshel Yaron writes: >>> Emacs 29 seems to inject always a 'super' key event after 'meta'. >>> E.g. when I try to press 'M-x', emacs reports >>> >>> | M-s-x is undefined >>> >>> Ditto with any other key combination which involves 'meta'. > > FWIW I had a similar issue a few weeks ago, with Emacs master. I don't > think it was an Emacs problem though, IIRC I ended up resolving it by > tweaking my ~/.Xmodmap, adding or reordering a `clear` line. > > When you say that you press `M-x`, which key exactly are you pressing? The key left of space (labeled "Alt") or right of it ("Alt Gr"). With xkbcomp from Fedora 38, I saw that '' was still assigned to Mod4 ('xkbcomp :0 - | grep Mod4'). With Fedora 39 this is not the case anymore (but problem still persists) and I can recover there by reloading the xkb map E.g. with xkbcomp-1.4.6: 1. setxkbmap && xmodmap ~/.Xmodmap --> emacs sees 'M-s-x' 2. xkbcomp :0 /tmp/bad && xkbcomp /tmp/bad :0 --> emacs sees 'M-x' as expected I solved to problem for me by switching to xkb; but this is much more complicated than Xmodmap and because it seems to be impossible to clear a 'modifier_map' I have to copy & paste large parts of predefined keyboard layouts. > A good way to gain more insight here would be to start `xev` and note > which keycodes it records when you say `M-x`. KeyPress event, serial 30, synthetic NO, window 0xa600001, root 0x777, subw 0x0, time 196163413, (100,38), root:(2022,554), state 0x10, keycode 64 (keysym 0xffe7, Meta_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 33, synthetic NO, window 0xa600001, root 0x777, subw 0x0, time 196169285, (100,38), root:(2022,554), state 0x50, keycode 53 (keysym 0x78, x), same_screen YES, XLookupString gives 1 bytes: (78) "x" XmbLookupString gives 1 bytes: (78) "x" XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0xa600001, root 0x777, subw 0x0, time 196169413, (100,38), root:(2022,554), state 0x50, keycode 53 (keysym 0x78, x), same_screen YES, XLookupString gives 1 bytes: (78) "x" XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0xa600001, root 0x777, subw 0x0, time 196172045, (100,38), root:(2022,554), state 0x50, keycode 64 (keysym 0xffe7, Meta_L), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False --- $ xmodmap -query 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 (0x85), Alt_R (0x87), Alt_L (0xcc) mod2 Num_Lock (0x4d) mod3 ISO_Level5_Shift (0xcb) mod4 Meta_L (0x40), Meta_R (0x6c), Meta_R (0x86), Meta_L (0xcd) mod5 ISO_Level3_Shift (0x5c) $ setxkbmap -query rules: evdev model: pc105 layout: us Enrico