From 34acc8e6e51c4711574b84400aee8311b0bb3fb9 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 9 Jun 1995 00:51:32 +0000 Subject: [PATCH] (update_menu_bar): Run activate-menubar-hook and call recompute-lucid-menubar. --- src/xdisp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xdisp.c b/src/xdisp.c index 6777ae9fea4..8d3a6321f30 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1262,6 +1262,12 @@ update_menu_bar (f, save_match_data) if (save_match_data) record_unwind_protect (Fstore_match_data, Fmatch_data ()); + /* Run the Lucid hook. */ + call1 (Vrun_hooks, Qactivate_menubar_hook); + /* If it has changed current-menubar from previous value, + really recompute the menubar from the value. */ + if (! NILP (Vlucid_menu_bar_dirty_flag)) + call0 (Qrecompute_lucid_menubar); call1 (Vrun_hooks, Qmenu_bar_update_hook); current_buffer = XBUFFER (w->buffer); FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f)); -- 2.39.2