diff options
| author | Eli Zaretskii | 2006-11-05 12:16:51 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-11-05 12:16:51 +0000 |
| commit | 0ec2e29e9b11ca2959b6d338a6f548292bfe08d4 (patch) | |
| tree | 55cb715c13c8329ec5b508f2921d64fcfa089b55 /src/macmenu.c | |
| parent | ec4ef1745798a7299239f68ad4df5ca54a747f6d (diff) | |
| download | emacs-0ec2e29e9b11ca2959b6d338a6f548292bfe08d4.tar.gz emacs-0ec2e29e9b11ca2959b6d338a6f548292bfe08d4.zip | |
(Fmenu_or_popup_active_p): New function.
(syms_of_macmenu): Defsubr it.
Diffstat (limited to 'src/macmenu.c')
| -rw-r--r-- | src/macmenu.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/macmenu.c b/src/macmenu.c index 02fae600cdf..ce0bc6eea54 100644 --- a/src/macmenu.c +++ b/src/macmenu.c | |||
| @@ -1052,6 +1052,17 @@ x_activate_menubar (f) | |||
| 1052 | UNBLOCK_INPUT; | 1052 | UNBLOCK_INPUT; |
| 1053 | } | 1053 | } |
| 1054 | 1054 | ||
| 1055 | /* The following is used by delayed window autoselection. */ | ||
| 1056 | |||
| 1057 | DEFUN ("menu-or-popup-active-p", Fmenu_or_popup_active_p, Smenu_or_popup_active_p, 0, 0, 0, | ||
| 1058 | doc: /* Return t if a menu or popup dialog is active. */) | ||
| 1059 | () | ||
| 1060 | { | ||
| 1061 | /* Always return Qnil since menu selection functions do not return | ||
| 1062 | until a selection has been made or cancelled. */ | ||
| 1063 | return Qnil; | ||
| 1064 | } | ||
| 1065 | |||
| 1055 | /* Find the menu selection and store it in the keyboard buffer. | 1066 | /* Find the menu selection and store it in the keyboard buffer. |
| 1056 | F is the frame the menu is on. | 1067 | F is the frame the menu is on. |
| 1057 | MENU_BAR_ITEMS_USED is the length of VECTOR. | 1068 | MENU_BAR_ITEMS_USED is the length of VECTOR. |
| @@ -2653,6 +2664,7 @@ syms_of_macmenu () | |||
| 2653 | staticpro (&Qdebug_on_next_call); | 2664 | staticpro (&Qdebug_on_next_call); |
| 2654 | 2665 | ||
| 2655 | defsubr (&Sx_popup_menu); | 2666 | defsubr (&Sx_popup_menu); |
| 2667 | defsubr (&Smenu_or_popup_active_p); | ||
| 2656 | #ifdef HAVE_MENUS | 2668 | #ifdef HAVE_MENUS |
| 2657 | defsubr (&Sx_popup_dialog); | 2669 | defsubr (&Sx_popup_dialog); |
| 2658 | #endif | 2670 | #endif |