From 0bca89401acf4c0978be2fa72685b5ce1f319255 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Fri, 22 Sep 2000 16:11:48 +0000 Subject: [PATCH] (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide a doc string. --- src/xdisp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 899e0d2fa9b..c56cffa951d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -357,7 +357,7 @@ Lisp_Object Vicon_title_format; static Lisp_Object Vwindow_size_change_functions; -Lisp_Object Qmenu_bar_update_hook; +Lisp_Object Qmenu_bar_update_hook, Vmenu_bar_update_hook; /* Nonzero if overlay arrow has been displayed once in this window. */ @@ -13645,6 +13645,11 @@ Each element of the list is a symbol for a supported image type."); "If non-nil, messages are truncated instead of resizing the echo area.\n\ Bind this around calls to `message' to let it take effect."); message_truncate_lines = 0; + + DEFVAR_LISP ("menu-bar-update-hook", &Vmenu_bar_update_hook, + "Normal hook run for clicks on menu bar, before displaying a submenu.\n\ +Can be used to update submenus whose contents should vary."); + } -- 2.39.5