From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54289: 29.0.50; Emacs ignores xmodmap Super_L assignment Date: Tue, 08 Mar 2022 19:13:10 +0800 Message-ID: <87wnh4k88p.fsf@yahoo.com> 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> <87fsnsu35u.fsf@gmx.net> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 54289@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 08 12:15:29 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 1nRXoO-0007Fo-P0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 12:15:28 +0100 Original-Received: from localhost ([::1]:37788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRXoN-0001Tl-AL for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 06:15:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRXn0-0000U3-Uv for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 06:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33255) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRXn0-00024M-MO for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 06:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRXn0-0002a9-FM for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 06:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Mar 2022 11:14:02 +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.16467380119880 (code B ref 54289); Tue, 08 Mar 2022 11:14:02 +0000 Original-Received: (at 54289) by debbugs.gnu.org; 8 Mar 2022 11:13:31 +0000 Original-Received: from localhost ([127.0.0.1]:55385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRXmU-0002ZI-Sg for submit@debbugs.gnu.org; Tue, 08 Mar 2022 06:13:31 -0500 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:33132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRXmR-0002Z3-Jx for 54289@debbugs.gnu.org; Tue, 08 Mar 2022 06:13:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1646738001; bh=KZdvQvglmhQ98grUF5Oe+usCdCR8Y88FGPMJ6Cn+kLc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject: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HS.2x_CIyP MbrqqrB8Mw666byN7aDmcxt7tHyOwHUEtKRhi8wht4DumYda_1ZyxirbW78HZVz_WHPgevVahUhR 67S0sxxP5yQwleTFCpe9taLx6ZYZlZY24H3Hl9Om5yiJHsPM8zk3T1gV_3jDA_JmrbljZT9EiuXE yPnoFtA6wCfod3FgU87I4EM.L6J0AIjVqPdVWUHdxa8SG5YuNb_DshROn6UEcC6adtMb0BvOftWo QceXKpaUIJPaMvQCHenqGkuXQB0RjT23R5IQ.3yfaRrWLiYMpNUzm53PDbdtvDzRUSnfLh0a6jQa AHyi6BnyLZEFk0DBMHk9Rakx1EW0rZwXhM8T1VJNFTrptCc_Te03jbx9Lhm3QG2k_mR9D_M9LP9m 7uQgtJsqaqJ9_S5mQ6EwSZ7U8opPjs3gw082zbAqtXa6bNdzmqNGi19e.8IheJXIl_Qi4h_bufxn nSUesWNHJeXGwaaSaTyASVxhLdtm12MBzvry9Owl2KMppJsnYpiwBahJH8P8S497ASrv6h3lumCb DO7HbMIp2zVUFh4fxQSQvnTu_7Eru.ShbgGYf_pDDKP1viEA9suu3YFpSzESrWGipEqnF7Dfzo7k e.8M.WsVed9nsQYtWbiNkyVOk8AnSjPR.W2ISUl6Hf X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Tue, 8 Mar 2022 11:13:21 +0000 Original-Received: by kubenode514.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 40c314a3747f72d1586dd1eea9098543; Tue, 08 Mar 2022 11:13:14 +0000 (UTC) In-Reply-To: <87fsnsu35u.fsf@gmx.net> (Stephen Berman's message of "Tue, 08 Mar 2022 11:52:45 +0100") X-Mailer: WebService/1.1.19878 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:228137 Archived-At: Stephen Berman writes: > You mean forward slash and backslash? I.e. mod4 subsumes the Super_L > and Menu keysyms? No, just forward slash. > 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). Thanks, then please run GDB, and add a breakpoint like this: (gdb) break xterm.c:12731 It should then print something along the lines of Breakpoint N at 0x505332: file xterm.c, line 12731. At this point, say: (gdb) condition N rec->map->modmap[xev->detail] != 0 (gdb) commands Type commands for breakpoint(s) 3, one per line. End with a line saying just "end". >p rec->map->modmap[xev->detail] >c >end where N is the number of the breakpoint that was printed above, then run Emacs like this: (gdb) run -q -xrm 'Emacs.useXIM: false' Press the left super key, and show the output. Thanks. If GDB complains about values being optimized out, try building without optimizations.