unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#16565: 24.3.50; x-popup-menu just returns nil
@ 2014-01-27  2:50 Michael Heerdegen
  2014-01-27  3:05 ` Michael Heerdegen
  2014-01-27 16:10 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: Michael Heerdegen @ 2014-01-27  2:50 UTC (permalink / raw)
  To: 16565


Hello,

in emacs -Q, I eval the following:

--8<---------------cut here---------------start------------->8---
(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.

I use openbox, but the behavior is the same in an X session without any
window manager.


Regards,

Michael.



In GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.6)
 of 2014-01-27 on drachen
Windowing system distributor `The X.Org Foundation', version 11.0.11405000
System Description:	Debian GNU/Linux testing (jessie)

Important settings:
  value of $LC_ALL: de_DE.utf8
  value of $LC_COLLATE: C
  value of $LC_TIME: C
  value of $LANG: de_DE.utf8
  locale-coding-system: utf-8-unix






^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-29 19:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2014-01-29  8:27             ` Jan Djärv
2014-01-29 19:26               ` Michael Heerdegen

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