GNU bug report logs - #16565
24.3.50; x-popup-menu just returns nil

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Mon, 27 Jan 2014 02:52:02 UTC

Severity: normal

Found in version 24.3.50

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 16565 <at> debbugs.gnu.org
Subject: bug#16565: 24.3.50; x-popup-menu just returns nil
Date: Tue, 28 Jan 2014 06:39:59 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

> If you start GDB in the src directory, or let it otherwise read the
> file src/.gdbinit, you can know for sure: the "xtype" command will
> tell you what kind of Lisp data is in 'selection':
>
>   (gdb) p selection
>   (gdb) xtype
>
> If "xtype" says it's a Lisp symbol, another command "xsymbol" will
> tell you what symbol is that, it will say "nil" if it is nil.

I don't have a command xtype, only ptype.  What do I miss?  Anyway, the
mouse tooltip over Qnil shows the same integer.

So I think xmenu_show returns nil in the bad case.

I continued debugging xmenu_show and found that after the call to
`create_and_show_popup_menu', `menu_item_selection' is only != 0 in the
good case.

I tried to step through `create_and_show_popup_menu' as well, but that
makes any input from X impossible at some point, I had to kill gdb from
the console.

Michael.





This bug report was last modified 11 years and 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.