From: Eli Zaretskii <eliz@gnu.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 16565@debbugs.gnu.org
Subject: bug#16565: 24.3.50; x-popup-menu just returns nil
Date: Mon, 27 Jan 2014 18:10:31 +0200 [thread overview]
Message-ID: <83d2jd9zig.fsf@gnu.org> (raw)
In-Reply-To: <87r47urvcy.fsf@web.de>
> From: Michael Heerdegen <michael_heerdegen@web.de>
> Date: Mon, 27 Jan 2014 03:50:37 +0100
>
>
> (defun foo (event)
> (interactive "e")
> (message "%s" (x-popup-menu event (mouse-menu-bar-map))))
>
> (global-set-key
> [(meta control mouse-3)] ;just some free key
> #'foo)
> --8<---------------cut here---------------end--------------->8---
>
> Now, I hit M-C-mouse-3 somewhere. The menu appears at the right place.
> I select any item, and FOO messages "nil" instead of a list of events.
> This is the bug.
>
> However, when I redefine FOO so that it uses t instead of EVENT as first
> argument of `x-popup-menu', it works as expected!
>
> The problem seems to be system specific. I see it on Debian Linux with
> X, Drew Adams doesn't see it under Windows.
Popup menus are toolkit-dependent, and you are using GTK3. If you
want to try other toolkits, try Lucid or no-toolkit configuration.
(I confirm that the problem doesn't happen on MS-Windows.)
To find out what is going on, step with a debugger int x-popup-menu,
and see why it returns nil. My guess would be that the menu callback
is not called for some reason, or maybe some other calamity.
Alternatively, if older versions don't show this behavior, try
bisecting.
next prev parent reply other threads:[~2014-01-27 16:10 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83d2jd9zig.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=16565@debbugs.gnu.org \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.