GNU bug report logs -
#58771
29.0.50; context submenu can not click when run emacs lucid build.
Previous Next
Reported by: Feng Shu <tumashu <at> 163.com>
Date: Tue, 25 Oct 2022 05:45:01 UTC
Severity: normal
Merged with 57320,
57518,
59733
Found in version 29.0.50
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii wrote:
> > Cc: Feng Shu <tumashu <at> 163.com>, Stephen Berman <stephen.berman <at> gmx.net>,
> > 58771 <at> debbugs.gnu.org, Visuwesh <visuweshm <at> gmail.com>
> > From: Mike Kupfer <kupfer <at> rawbw.com>
> > 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
This bug report was last modified 2 years and 132 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.