Mercurial > emacs
changeset 31845:4bdcc0f0232f
(syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
a doc string.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 22 Sep 2000 16:11:48 +0000 |
parents | 228555beda7f |
children | 6e48fd527039 |
files | src/xdisp.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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."); + }