emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Popup-menu signals quit when Aborted


From: Stefan Monnier
Subject: Re: Popup-menu signals quit when Aborted
Date: Sat, 01 Feb 2020 10:55:32 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> `x-popup-menu` is setup to handle mouse events specially when “aborting” the
> menu by clicking off of it:
>
>> If the user gets rid of the menu without making a valid choice, for
>> instance by clicking the mouse away from a valid choice or by typing
>> keyboard input, then this normally results in a quit and
>> ‘x-popup-menu’ does not return. But if POSITION is a mouse button
>> event (indicating that the user invoked the menu with the mouse) then
>> no quit occurs and ‘x-popup-menu’ returns nil.

I wasn't aware (or if I was, I forgot about it in the mean time) of
this oddity.

> This seems sensible.

I'm glad you find it so, because I can't figure out the underlying logic
of this oddity.  Can you explain why you think it's sensible?


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]