>>>>> On Mon, 18 Sep 2006 11:14:54 +0200, martin rudalics <[EMAIL PROTECTED]>
>>>>> 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
[EMAIL PROTECTED]
_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug