From 65048e973339594bfdbdf354076af4b0071dbb22 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 19 Feb 2001 13:30:31 +0000 Subject: [PATCH] (update_menu_bar): Run activate-menu-bar-hook with safe_run_hooks. --- src/ChangeLog | 6 ++++++ src/xdisp.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 69ab0fe6bdf..f1123f07a74 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,11 @@ 2001-02-19 Gerd Moellmann + * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with + safe_run_hooks. + + * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with + safe_run_hooks. + * emacs.c (malloc_initialize_hook): Handle case thet `environ' is null. diff --git a/src/xdisp.c b/src/xdisp.c index 3e5dc207c36..e573069dcb1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -7033,7 +7033,7 @@ update_menu_bar (f, save_match_data) } /* Run the Lucid hook. */ - call1 (Vrun_hooks, Qactivate_menubar_hook); + safe_run_hooks (Qactivate_menubar_hook); /* If it has changed current-menubar from previous value, really recompute the menu-bar from the value. */ -- 2.39.5