emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: mouse-autoselect-window with menu pane


From: YAMAMOTO Mitsuharu
Subject: Re: mouse-autoselect-window with menu pane
Date: Mon, 18 Sep 2006 19:14:25 +0900
User-agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI)

>>>>> On Mon, 18 Sep 2006 11:14:54 +0200, martin rudalics <address@hidden> said:

> Thanks for the information.  Hence

> DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, 
> Smenu_or_popup_active_p, 0, 0, 0,
>         doc: /* Return t if a menu or popup dialog is active on selected 
> frame.  */)
>       ()
> {
>    /* Always return Qnil since menu selection functions do not return
>       until a selection has been made or cancelled.  */
>    return Qnil;
> }

> will DTRT on Mac?

If the purpose is to know if some menu is *currently* active, then the
function will DTRT because Lisp evaluation never happens during menu
selection on Mac.

> But could you please try to make sure that the scenario described by
> Simon Marshall which started the current thread does not occur for the
> Mac port?  I apologize for being paranoic here.

The welcome message is shown in the lower window, and the upper window
gets selected immediately after I select the menu item.  I think the
timer has fired just after the selection.

> You mean `menubar_selection_callback' is exclusively called from
> `x_activate_menubar' via `do_menu_choice'?  In that case, the references
> to menubar_active should be removed.

Exactly.  I'll do that later.

                                     YAMAMOTO Mitsuharu
                                address@hidden




reply via email to

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