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#58771: 29.0.50; context submenu can not click when run emacs lucid build. Date: Wed, 26 Oct 2022 10:00:19 +0200 Message-ID: <87wn8nvwto.fsf@gmx.net> References: <874jvssc8b.fsf@163.com> <87pmeg2vr5.fsf@yahoo.com> <87zgdkqp0u.fsf@163.com> <87bkq02o1f.fsf@yahoo.com> <87k04ohun2.fsf@rub.de> <87v8o71kkt.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="12256"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Feng Shu , 58771@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 26 10:09:21 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 1onbTU-0002vg-6g for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 26 Oct 2022 10:09:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onbLd-0005Xa-Hx; Wed, 26 Oct 2022 04:01:13 -0400 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 1onbLU-0005TI-3d for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 04:01:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onbLT-0007hw-FO for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 04:01:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onbLT-0004dS-6H for bug-gnu-emacs@gnu.org; Wed, 26 Oct 2022 04:01:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Oct 2022 08:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58771 X-GNU-PR-Package: emacs Original-Received: via spool by 58771-submit@debbugs.gnu.org id=B58771.166677124417763 (code B ref 58771); Wed, 26 Oct 2022 08:01:03 +0000 Original-Received: (at 58771) by debbugs.gnu.org; 26 Oct 2022 08:00:44 +0000 Original-Received: from localhost ([127.0.0.1]:53198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onbL9-0004cQ-R0 for submit@debbugs.gnu.org; Wed, 26 Oct 2022 04:00:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:44661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onbL7-0004cB-Ky for 58771@debbugs.gnu.org; Wed, 26 Oct 2022 04:00:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666771220; bh=6+iwySYFOhHgd0kKQ7kYrBt6Zs+PKBYgNNFddCDu6tM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=jVyvzdp1FAtRnhNAmTz3+VVuenD+WOu6XjoDO+8sM/oRYzjcesAT0eXKLxfaaMUHI wUNFdvC9dm6BUFLJNuuF9r3TXs4kdv8JQA2qUJ3Mmozc8w4TrBzBJhexBdcDeXcv/k of/CESeZJQGhIq1QSFU6Jaf2YXX0h93psmizzHuc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs2 ([89.246.36.180]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N7i8O-1p9vgE0ZxS-014gWQ; Wed, 26 Oct 2022 10:00:20 +0200 In-Reply-To: <87v8o71kkt.fsf@yahoo.com> (Po Lu's message of "Wed, 26 Oct 2022 08:42:58 +0800") X-Provags-ID: V03:K1:iQccq1a66rl9V/oyon2N4iFevb+OeCywvDaHN9MqFPX/Fx0be3Q kzpz8/6o0tE5/2t7Otk/jBfZZxW0vDTbDZ0NoWxW53HOJCykqAhh5tMa7hnKVclP6b0CyFB UJJmtcxm6nsIVRBGqfEKseJhWpkrBIip28JXt+wZarUfV/IMtm4T8JCLdHMyiaIJfhiUHKg 7S3CZXfeVBK7mdLEIryuQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:crtm18W2SvA=:stBA1G/ZBx314eGFCtZ8XV uKUDSYipB6zlKaKIIO4RGHRNTz6CB14he4xctpKiNgnnE001XTJ3w2SGVlG2A6HEqRVSMEQr/ bvCZ2AdSE8X3U8n39IX04YKM93HJ8pCmRw09imt7cMe0svcNsPlu4/O60yQuGbM+wW0p7V02I tetDzJi1eVY3kiolyQq89kQY9029piQh/Gmhbn72XM1H+k8Kovcx/xWS1bCbo1MTgKAyQvPfg NYmcR2vx+TaPzV02ggPkl9hq+G1BoK6tWGwd9uqnCd6aCeonDZQ9qrwBzm8AyNzEkJ2l/pSye yC3jsrYkh0KbnqwSNb84jvDbKNayjXDI5h2WjLzfzTswNSV4PSlX+NnaGRm7w2b3/hAJMPd8w 4Zi2+zCt0bFkl33Jpg1mLtxm/35k0yMqpxkmJCLj4mBSAPYfhFcg1qiaSqQ0Vk6mfx8Bxeh6U tvk8M184hXM8Tn1aTtb0P4DiAlyVDuCkQJjYngoI6J2dxXA2zlAzJjgE9kzRNXeyNCmCk0zS8 NGvYmykOX2GQ472sO8bmK1XqmQ/jKvwCvIIgASxWp6juhfZ0gdfIJV853H+e/HF7cT3rRY/PL 5RRSJDlw6kSi1OqFUt3OjGG9ywmfemnKVaCXUkdo9GRzqmnJGu5Hs38PAwJu0a2pZ1rAEhX36 ru5cnLgwMfl9Hamfv1LPB8Jejl+dafr5Kf9FVpQ6NB5xor2hIq8CbEefP5dd0G1Bh1lbrypVu f3ai++P1AhPWtIOBekVUFPcbvOlqeJWQjOJymMeKkKQV8XX1YfP8UdTetdwoXfwl0jOURbaM 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246204 Archived-At: On Wed, 26 Oct 2022 08:42:58 +0800 Po Lu wrote: > Stephen Berman writes: > >> I can reliably reproduce the bug, but for me it's a sympton of broader >> buggy behavior with menus in the Lucid build, which I've observed since >> I started regularly building with the Lucid toolkit some months ago >> (after not doing so for many years previously, so I don't know how old >> this behavior is). >> >> So while the items of a context menu (but not those of a submenu) can be >> scrolled with the mouse, context menus are completely unresponsive to >> keyboard events. In contrast, with menus from the menu bar (whether >> open via mouse click for with the F10 key binding), I can both navigate >> and select (also in submenus) with the keyboard but other than opening >> and closing, the menu bar menus are completely unresponsive to the >> mouse. > > Could you please try to find out what this call to XtGrabPointer in > xlwmenu.c returns when you pop up a menu? > > #ifdef emacs > x_catch_errors (display); > #endif > if (XtGrabPointer ((Widget)mw, False, > (PointerMotionMask > | PointerMotionHintMask > | ButtonReleaseMask > | ButtonPressMask), > GrabModeAsync, GrabModeAsync, None, > mw->menu.cursor_shape, > event->time) == Success) <----------------- > { > if (true > > If you're going to be using a debugger, then please do the debugging > remotely from a different machine. Otherwise, you will either lock up > your X server or waste a lot of time when the bug simply vanishes once > you try to debug it. > > Either way, we have to get this fixed before Emacs 29 is released, so > please try to be fast here. Thanks a lot. I've done only elementary debugging with gdb and never from a different machine, so I will need explicit instructions for how to set it up and what to enter, and if it's not straightforward, I probably can't do it soon. But there may be a (for me) quicker way to investigate the issue: I'm in the process of building a new system on this machine, which is an updated version of my current system (on a different partition), and one of the first programs I built after installing the basic system is Emacs, first before installing X, then again with X but before installing GTK. On this system, the X build used the Lucid toolkit, and with it I did not observe the menu problems I described. Aside from different versions of system libraries like glibc and build tools like gcc, the two builds differ in their Emacs-specific configurations. The build with the menu problems used configure -C --with-x-toolkit=lucid --with-xinput2 CFLAGS='-Og -g3' while the build on the newer system without the menu problems used configure -C --with-jpeg=ifavailable --with-gif=ifavailable --with-tiff=ifavailable I'll try using the other configuration on the new system and see if that makes a difference (though I probably won't get to that till this evening.) Steve Berman