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 12:40:24 +0100 Message-ID: <87bkygu0yf.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> <87fsnsu35u.fsf@gmx.net> <87wnh4k88p.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="32877"; 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 12:56:33 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 1nRYS8-0008QB-H7 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 12:56:32 +0100 Original-Received: from localhost ([::1]:49160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRYS7-0006wy-G2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 08 Mar 2022 06:56:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRYD9-00009x-0A for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 06:41:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRYD8-0006xG-LD for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 06:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRYD8-0003OG-Gc for bug-gnu-emacs@gnu.org; Tue, 08 Mar 2022 06:41:02 -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 11:41: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.164673963612989 (code B ref 54289); Tue, 08 Mar 2022 11:41:02 +0000 Original-Received: (at 54289) by debbugs.gnu.org; 8 Mar 2022 11:40:36 +0000 Original-Received: from localhost ([127.0.0.1]:55393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRYCi-0003NQ-B8 for submit@debbugs.gnu.org; Tue, 08 Mar 2022 06:40:36 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:34199) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRYCf-0003NB-Ta for 54289@debbugs.gnu.org; Tue, 08 Mar 2022 06:40:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1646739625; bh=PxArBddRmAqERvwHxt9WGlX+0zbH+uuTYvYRqAfR2L8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Hw6tZo9b6f5sAHdbKMzEUyHuO8NTNfRyTtMLl/apWPpLDOyZIMfIh7Gw1nXDdI1D/ BwfFxvZ64DT5fAee2Sx2n/H6aPLyQaKet9MkA2YeP41UTHyAwfEvDvYSyVHg9AUUC9 PnSJMmVdbgyY3JLnuqLyi9TIn603FngdcGe3l/MI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.100]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MHG8g-1nNCbx0y9I-00DGiM; Tue, 08 Mar 2022 12:40:25 +0100 In-Reply-To: <87wnh4k88p.fsf@yahoo.com> (Po Lu's message of "Tue, 08 Mar 2022 19:13:10 +0800") X-Provags-ID: V03:K1:QbiNWTct9ptOnRI5xiO5SpcDKh8GYBmuvd18J3n0Gv/o9pFwvhW ER9w1PacnPViMWlpVNbSxn6IuSjaRhkuYsZ77XyKLnRwJdW4TLIEJMPG3whHiR7Od8X2pY4 lFxEBFKgolkVHnhDC4Z59pB0JYXXN5r68d9+DZdY99NMHy2ol0WeowDFDpaa9OH/YvNfX7B RTt/IBZXmbz7ZbXb4q37w== X-UI-Out-Filterresults: notjunk:1;V03:K0:vQYTvV2jemc=:i4B9Z2khK/pGFP1uRP/6cH PQGCq/z9HddpyO2WJot+yIjxSCMIQ4aU6gbePLLnUxg3LuIyGHFRcrWsiZkkqQO064Ftz3D8H koQ6POR4zM14KlBimHFdrENJTwDmNyEXs4REWiQp4yq4JWqy1d9XoigTn8m+wMd7IGmq5r7Wn ngFTW0NnYVjUbdKfHZCntuCvHCTQudt3KOyK/1OvEQUmMs1RzDq4zB1tFSJB6AZEOPH902GOa Zv2BtbZzVVoeZDT+uKQuhACoQgFDeBvlkpfbnQcuXxT2E7oDfeTpa/7eJsd89gSRcFMd14LUQ nbuKzIx05TeoEQQznaJgp5xuck6ZYbeGgD8VX9lAcvKeH96QQuBZ4ugq5QD9MsRUi9iY7eh2t xpaIsE8+YYqA1pIxEUpb5TvD4RpOeTcnXs/Qu5N3RNmQ4k/ofL8ELEVAxGXd4a+h4svl24fhy jdXslNx9tGviijLP3hLpsLnLqscc4Ztzdi2bQbQD8bezD7q23kHP5lfNiQNyG3oOVOq2TiPP8 veN+dFC6tupTFoupLHuzttMIsmEFMC/F1X0AIjlIWInt1bSFLnUP/qSEkgIpEz0JIHhVzfPLI s5YX7GlcuRq/25kFajeIH+ComtZAR6i7IERcye4SmkDaLBFfnjZUHqKEC+YMtpgPHSt8upE3m laM5VrAZVi6WRmTkGvgf3SF8N88wrbvN3FXEidddH129ogo5NrJsr48VJCbPxFD77cUi3PiWk fMzxNTwv9puKAgYChts/1yoPkEuW50XpcOidCL55HfDazUPgUxxaKVylHZn8HcpFuhMpywqP 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:228138 Archived-At: On Tue, 08 Mar 2022 19:13:10 +0800 Po Lu wrote: > 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. My xterm.c is not quite up to date, so I adjusted the breakpoint: (gdb) break xterm.c:12547 Breakpoint 3 at 0x55b4c9: file /home/steve/src/emacs/emacs-master/src/xterm.c, line 12547. (gdb) condition 3 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 (gdb) run -q -xrm 'Emacs.useXIM: false' Starting program: /home/steve/build/emacs-master/src/emacs -q -xrm 'Emacs.useXIM: false' [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7fffea505640 (LWP 10837)] [New Thread 0x7fffe9af7640 (LWP 10838)] [New Thread 0x7fffe8f9a640 (LWP 10839)] [New Thread 0x7fffdbfff640 (LWP 10840)] [Thread 0x7fffdbfff640 (LWP 10840) exited] [New Thread 0x7fffdbfff640 (LWP 10841)] [New Thread 0x7fffdb66f640 (LWP 10842)] [Thread 0x7fffdbfff640 (LWP 10841) exited] [Thread 0x7fffdb66f640 (LWP 10842) exited] [New Thread 0x7fffdb66f640 (LWP 10843)] [New Thread 0x7fffdbfff640 (LWP 10844)] [Thread 0x7fffdb66f640 (LWP 10843) exited] [Thread 0x7fffdbfff640 (LWP 10844) exited] Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=dpyinfo@entry=0xd586e0, event=event@entry=0x7fffffffd410, finish=finish@entry=0xaac980 , hold_quit=0x7fffffffd660) at /home/steve/src/emacs/emacs-master/src/xterm.c:12549 warning: Source file is more recent than executable. 12549 if (rec->map->modmap && rec->map->modmap[xev->detail]) $1 = 64 '@' [Thread 0x7fffe8f9a640 (LWP 10839) exited] The GDB session is still running; do you want any further output? Steve Berman