# HG changeset patch # User Dave Love # Date 969639108 0 # Node ID 4bdcc0f0232f58893b90b0c98f2901b7782b8a75 # Parent 228555beda7fb8724101201fc2645c9b77bf440e (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide a doc string. diff -r 228555beda7f -r 4bdcc0f0232f src/xdisp.c --- a/src/xdisp.c Fri Sep 22 16:11:12 2000 +0000 +++ b/src/xdisp.c Fri Sep 22 16:11:48 2000 +0000 @@ -357,7 +357,7 @@ 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 @@ "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."); + }