changeset 73694:124599cd087e

(Fmenu_or_popup_active_p): New function. (syms_of_macmenu): Defsubr it.
author Eli Zaretskii <eliz@gnu.org>
date Sun, 05 Nov 2006 12:16:51 +0000
parents 848f49287246
children 3901ff3eaf2c
files src/macmenu.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/macmenu.c	Sun Nov 05 12:08:02 2006 +0000
+++ b/src/macmenu.c	Sun Nov 05 12:16:51 2006 +0000
@@ -1052,6 +1052,17 @@
   UNBLOCK_INPUT;
 }
 
+/* The following is used by delayed window autoselection.  */
+
+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.  */)
+     ()
+{
+  /* Always return Qnil since menu selection functions do not return
+     until a selection has been made or cancelled.  */
+  return Qnil;
+}
+
 /* Find the menu selection and store it in the keyboard buffer.
    F is the frame the menu is on.
    MENU_BAR_ITEMS_USED is the length of VECTOR.
@@ -2653,6 +2664,7 @@
   staticpro (&Qdebug_on_next_call);
 
   defsubr (&Sx_popup_menu);
+  defsubr (&Smenu_or_popup_active_p);
 #ifdef HAVE_MENUS
   defsubr (&Sx_popup_dialog);
 #endif