From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mike Kupfer Newsgroups: gmane.emacs.bugs Subject: bug#58771: 29.0.50; context submenu can not click when run emacs lucid build. Date: Thu, 12 Jan 2023 21:23:52 -0800 Message-ID: <69068.1673587432@alto> References: <874jvssc8b.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18237"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, tumashu@163.com, stephen.berman@gmx.net, 58771@debbugs.gnu.org, visuweshm@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 13 09:28:33 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 1pGFQO-0004Vm-5G for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Jan 2023 09:28:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGFPx-0001vn-T2; Fri, 13 Jan 2023 03:28: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 1pGFPv-0001v9-Qs for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 03:28:03 -0500 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 1pGFPv-0001Wz-6V for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 03:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGFPv-0001Mh-29 for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 03:28:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mike Kupfer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jan 2023 08:28: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.16735984495181 (code B ref 58771); Fri, 13 Jan 2023 08:28:03 +0000 Original-Received: (at 58771) by debbugs.gnu.org; 13 Jan 2023 08:27:29 +0000 Original-Received: from localhost ([127.0.0.1]:49470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGFPM-0001LP-Sm for submit@debbugs.gnu.org; Fri, 13 Jan 2023 03:27:29 -0500 Original-Received: from shell1.rawbw.com ([198.144.192.42]:62623 ident=root) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGCXu-0005n0-9m for 58771@debbugs.gnu.org; Fri, 13 Jan 2023 00:24:06 -0500 Original-Received: from alto (135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged)) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 30D5Nqgn079838 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 12 Jan 2023 21:23:57 -0800 (PST) (envelope-from kupfer@rawbw.com) X-Authentication-Warning: shell1.rawbw.com: Host 135-180-174-133.dsl.dynamic.sonic.net [135.180.174.133] (may be forged) claimed to be alto In-Reply-To: Your message of "Thu, 12 Jan 2023 10:56:21 +0200." <83k01sku6i.fsf@gnu.org> X-Mailer: MH-E 8.6+git; nmh 1.7.1; Emacs 29.0.60 Content-ID: <69067.1673587432.1@alto> X-Mailman-Approved-At: Fri, 13 Jan 2023 03:27:24 -0500 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:253269 Archived-At: Eli Zaretskii wrote: > > Cc: Feng Shu , Stephen Berman , > > 58771@debbugs.gnu.org, Visuwesh > > From: Mike Kupfer > > Date: Wed, 11 Jan 2023 12:44:40 -0800 > > > > Po Lu wrote: > > > > > I have a hunch. If you touch globals.h in src, does it result in files > > > under the lwlib directory being rebuilt? > > > > Good call. Nothing in lwlib gets rebuilt: > > Which files in lwlib should be rebuilt? And what do you see in > lwlib/deps/ for those files? We're particularly interested in seeing that lwlib/xlwmenu.o get rebuilt when globals.h changes. pop_up_menu() will not call XtGrabKeyboard() or XtSetKeyboardFocus() if globals.f_lucid__menu_grab_keyboard is false. And that seems to be what's behind all these intermittent problems with Lucid popup menus. lwlib/deps/xlwmenu.d looks okay to me, as it has: xlwmenu.o: xlwmenu.c ../src/config.h ../src/conf_post.h ../src/lisp.h \ ../lib/alloca.h ../lib/string.h ../lib/inttypes.h ../lib/attribute.h \ ../lib/intprops.h ../lib/intprops-internal.h ../lib/verify.h \ ../src/globals.h ../src/comp.h ../src/dynlib.h ../src/thread.h \ ../src/regex-emacs.h ../src/lisp.h ../src/sysselect.h \ ../lib/sys/select.h ../src/systhread.h ../lib/stdio.h xlwmenuP.h \ > Could it be that the root cause for this is that ALLOBJS is not > defined in lwlib/Makefile.in? I think you've identified the problem. I tried hacking lwlib/Makefile as follows: --- Makefile~ 2022-12-29 17:42:05.288751298 -0800 +++ Makefile 2023-01-12 21:08:24.717146041 -0800 @@ -57,6 +57,8 @@ OBJS = lwlib.o $(TOOLKIT_OBJS) lwlib-utils.o +ALLOBJS = $(OBJS) + -include ${top_builddir}/src/verbose.mk AUTO_DEPEND = yes Now, when I touch src/globals.h and run "make", xlwmenu.o does get rebuilt. ... make[2]: Entering directory '/home/kupfer/src/emacs-git/src' make -C ../lwlib/ liblw.a make[3]: Entering directory '/home/kupfer/src/emacs-git/lwlib' CC lwlib.o CC lwlib-Xlw.o CC xlwmenu.o CC lwlib-Xaw.o CC lwlib-utils.o GEN liblw.a make[3]: Leaving directory '/home/kupfer/src/emacs-git/lwlib' ... mike