From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#54289: 29.0.50; Emacs ignores xmodmap Super_L assignment Date: Tue, 08 Mar 2022 11:52:45 +0100 Message-ID: <87fsnsu35u.fsf@gmx.net> References: <87pmmyt2oj.fsf@rub.de> <87v8wpl1ok.fsf@yahoo.com> <87pmmxl1k0.fsf@yahoo.com> <87o82gu8ps.fsf@gmx.net> <87fsnslpp6.fsf@yahoo.com> <87k0d4u4lw.fsf@gmx.net> <878rtklov8.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="33754"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 54289@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 08 11:53:13 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 1nRXSr-0008e7-If for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 11:53:13 +0100 Original-Received: from localhost ([::1]:41710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRXSq-0000rx-4Y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 05:53:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33896) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRXSg-0000qP-Ff for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 05:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33241) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRXSg-00076m-6n for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 05:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRXSf-000261-TT for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 05:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Mar 2022 10:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54289 X-GNU-PR-Package: emacs Original-Received: via spool by 54289-submit@debbugs.gnu.org id=B54289.16467367778046 (code B ref 54289); Tue, 08 Mar 2022 10:53:01 +0000 Original-Received: (at 54289) by debbugs.gnu.org; 8 Mar 2022 10:52:57 +0000 Original-Received: from localhost ([127.0.0.1]:55371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRXSa-00025i-Pa for submit@debbugs.gnu.org; Tue, 08 Mar 2022 05:52:56 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:52699) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRXSY-00025U-Su for 54289@debbugs.gnu.org; Tue, 08 Mar 2022 05:52:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1646736766; bh=qly92rAB8BKgTK8Dgx8hAS1YFx6BmyN2OvLTEpr5uLk=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=VE1YU4XzQmJlirU07MyoXpEdGP07Pa1gpd0tQCVVltVv9Ve2q5nJTorgzMyKCh/YJ nHDtuBGQisinMyAkIa/kerDuoKSN2wl7ighYn5cUjUib1Q1UkAv0RkNYupR3aMaY74 Tlkrx4ZA/tdX+sjmx04UK2XgDTeJLFdQ8lUdBrq0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.100]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MtfNf-1oIp1t0Jpf-00v8Na; Tue, 08 Mar 2022 11:52:46 +0100 In-Reply-To: <878rtklov8.fsf@yahoo.com> (Po Lu's message of "Tue, 08 Mar 2022 18:28:43 +0800") X-Provags-ID: V03:K1:ryqKIYzwTIwDgOu+xAef8aSoPOV7s5Y5mvSiQuBbPvsGjnz6gSA WK+iEOKHR4Q7Cw4zO/AapJeI8HM2nRGk07tBmqHZM3arEf8TBzDCGCP+n7xgyP7btPTbSUH ug+BkKaVi/+2Dc+f/CYDimYkM3gfWDpEaHnB5+we+Bi/tokK1IDb963UGB7G/ge+dlrSnEB Flo/FwCR3udFlR2yo/NmQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:LkgAhH3XfpU=:t8skdFCZ4qG/bWhaorWPww TdRAsJcpmPWgs89uyG9a2m+VdqHE5YFqGOzMqzmMRYdf+81wp4JVyBeveO6MQDjDjbP4ADBbq tFJkTrB1/htL04bWkxWTaipm4abzf6MMdROaUm25MlMfp5/vpQtRwG0h8M0YNXxynZjWjXCsO lN4bN44MBsXMfrlDEW2/sWIXWhFYhN0OndKPI0c3N7QzuP4730nwMRaLOSZ64oNiE3SeJVmEz otmCCWwvJJbcaPjlqRJ6Yiw6BydmBoRJEyIyHRK3ni4WBNs01VatPL0Ce+qjtIkSWKRMILSWD xkw6oQwQGA5scHzLQYRXmgYFlbOGOXUMHQSO8J49OUG4izVMtrlI8nhvv9c3r/jNy3hT9+rTA pZd8IFeJpiUTLQA+by7vUd9r+oW9X8UbUFbtJbaJPIGaPWm8FP9KekWqnhy0J9Ec5UjH+NriJ FdSFjwCvft7/ZGFEZRO/TP/Kzd1W4KGgurKW/Px5i4uzLN5JXAkc/lGPFidzvu98VIkXacKQA dn2Ddr9DsZbaJBeNVLaAKsijREN6x7xnaHcfqDEOhnZL7pSh+yTfE8gKYn2MrQSqGD7vdoH/C kotEGtuRAcg72kT1EJtdj54+FvQrt1BqbLbRI5d6znl0bHqDCJtAnZSofQ8K7k2Oi7z74DO/+ oy9YoC8gYjoD57VPLO4xZ2tfmzJjqzzyMoKm2eiGMtWFo+wl0KK8SlrRvrt+VwKhz/7/A/lJG jjBU0VrffYLuq5of2lr1LjuXiNiI8l8ReB5hYXQe+l8AAwrzE2P65gyTltdij4OaJjm+jsiI 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:228136 Archived-At: On Tue, 08 Mar 2022 18:28:43 +0800 Po Lu wrote: > Stephen Berman writes: > >> shift Shift_L (0x32), Shift_R (0x3e) >> lock >> control Control_L (0x25), Control_L (0x42), Control_R (0x69) >> mod1 Alt_L (0x40), Meta_L (0xcd) >> mod2 Num_Lock (0x4d) >> mod3 >> mod4 slash (0x85), Super_R (0x86), slash (0xce), Hyper_L (0xcf) >> mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb) >> >>> I suspect that some modifier is mapped to Super_L, alongside slash. >> >> Is the above output consistent with the five mappings in my .Xmodmap >> file? > > No: mod4 is both slash You mean forward slash and backslash? I.e. mod4 subsumes the Super_L and Menu keysyms? >>> That is incorrect, so Emacs and Firefox are within their rights to >>> ignore such a mapping. >> >> If so, how do I get the mapping of Super_L to slash back (at least in >> Emacs)? > > Try adding this to your ~/.Xmodmap and evaluating it as well: > > remove mod4 = Super_R > remove mod4 = Hyper_L > > Also add this if you're sure you don't want the actual slash to be > treated as mod4: > > remove mod4 = slash > > And see if that resolves the problem. Also, please tell if that makes > Firefox recognize the mapping as well. I tried with all three remove mappings and also with just the first two, but in both cases nothing changed, i.e., typing Super_L (the Windows key on my keyboard) still produced nothing in emacs-29 (non-pgtk build). Same in Firefox. FWIW evaluating `xmodmap .Xmodmap' gives this output (both with the lines you suggested adding and without them): xmodmap: .Xmodmap:16: bad keysym in remove modifier list 'Caps_Lock', no corresponding keycodes xmodmap: .Xmodmap:18: bad keysym target keysym 'Caps_Lock', no corresponding keycodes xmodmap: .Xmodmap:49: bad keysym target keysym 'Super_L', no corresponding keycodes xmodmap: .Xmodmap:52: bad keysym target keysym 'Menu', no corresponding keycodes xmodmap: 4 errors encountered, aborting. Nevertheless, only the Super_L mapping fails in emacs-29 (and Firefox). Steve Berman