unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Michael Heerdegen <michael_heerdegen@web.de>,
	"Jan D." <jan.h.d@swipnet.se>
Cc: 16565@debbugs.gnu.org
Subject: bug#16565: 24.3.50; x-popup-menu just returns nil
Date: Tue, 28 Jan 2014 18:31:17 +0200	[thread overview]
Message-ID: <83ha8o83vu.fsf@gnu.org> (raw)
In-Reply-To: <877g9kzmts.fsf@web.de>

> From: Michael Heerdegen <michael_heerdegen@web.de>
> Cc: 16565@debbugs.gnu.org
> Date: Tue, 28 Jan 2014 06:39:59 +0100
> 
> Eli Zaretskii <eliz@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?

The first part of my instructions: either invoke GDB from the src
directory, or type this inside GDB:

  (gdb) source /path/to/src/.gdbinit

(It is possible that automatic loading of .gdbinit failed because
latest GDB versions refuse to load these init files by default.)

> Anyway, the mouse tooltip over Qnil shows the same integer.
> 
> So I think xmenu_show returns nil in the bad case.

Yes.

> 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.

Perhaps Jan could help us out, then.  Jan, it sounds like GTK doesn't
like what we do with the menu, for some reason.

Thanks.





  reply	other threads:[~2014-01-28 16:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-27  2:50 bug#16565: 24.3.50; x-popup-menu just returns nil Michael Heerdegen
2014-01-27  3:05 ` Michael Heerdegen
2014-01-27 16:10 ` Eli Zaretskii
2014-01-27 19:02   ` Michael Heerdegen
2014-01-28  3:11     ` Michael Heerdegen
2014-01-28  3:47       ` Eli Zaretskii
2014-01-28  5:39         ` Michael Heerdegen
2014-01-28 16:31           ` Eli Zaretskii [this message]
2014-01-29  8:27             ` Jan Djärv
2014-01-29 19:26               ` Michael Heerdegen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ha8o83vu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=16565@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).