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: 16565 <at> debbugs.gnu.org
Cc: jan.h.d <at> swipnet.se
Subject: bug#16565: 24.3.50; x-popup-menu just returns nil
Date: Wed, 29 Jan 2014 20:26:04 +0100
Jan Djärv <jan.h.d <at> swipnet.se> writes:

> The Gtk+ assumtion is that popup is done on key down, not key up, i.e.:
>
> (global-set-key
>  [(meta control down mouse-3)] ;just some free key
>  #'foo)
>
> It is very strange to popup a menu on key up.

Generally I agree.  My use case is not that trivial.  I use mouse3 from
Drew, that pops up a menu after the second mouse click, but only when
it was not double click (it depends on the time between).  He does that
by redefining `mouse-save-then-kill', which makes sense.  So when we pop
up the menu, the up event has already happened.

> From the Gtk+ point of view, that corresponds to popping up without a
> mouse click, hence the error.

Makes sense, in general.

> I have checked in a fix in trunk.

Great.  That fixes the problem in general, as well as for mouse3.
Thanks!


Regards,

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.