aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-02-19 13:29:21 +0000
committerGerd Moellmann2001-02-19 13:29:21 +0000
commit950eaee7c6b0b78087d80e544053f8bc06f1eec4 (patch)
tree4464b4753217708a7829c60b376c7540bb54603c /src/xmenu.c
parenta57c4026f20068117b927424ceadbeeb55269178 (diff)
downloademacs-950eaee7c6b0b78087d80e544053f8bc06f1eec4.tar.gz
emacs-950eaee7c6b0b78087d80e544053f8bc06f1eec4.zip
(set_frame_menubar): Run acivate-menu-bar-hook with
safe_run_hooks.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index f3e27be2225..224bc0bb0b8 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1,5 +1,6 @@
1/* X Communication module for terminals which understand the X protocol. 1/* X Communication module for terminals which understand the X protocol.
2 Copyright (C) 1986, 88, 93, 94, 96, 99, 2000 Free Software Foundation, Inc. 2 Copyright (C) 1986, 88, 93, 94, 96, 99, 2000, 2001
3 Free Software Foundation, Inc.
3 4
4This file is part of GNU Emacs. 5This file is part of GNU Emacs.
5 6
@@ -1684,7 +1685,8 @@ set_frame_menubar (f, first_time, deep_p)
1684 set_buffer_internal_1 (XBUFFER (buffer)); 1685 set_buffer_internal_1 (XBUFFER (buffer));
1685 1686
1686 /* Run the Lucid hook. */ 1687 /* Run the Lucid hook. */
1687 call1 (Vrun_hooks, Qactivate_menubar_hook); 1688 safe_run_hooks (Qactivate_menubar_hook);
1689
1688 /* If it has changed current-menubar from previous value, 1690 /* If it has changed current-menubar from previous value,
1689 really recompute the menubar from the value. */ 1691 really recompute the menubar from the value. */
1690 if (! NILP (Vlucid_menu_bar_dirty_flag)) 1692 if (! NILP (Vlucid_menu_bar_dirty_flag))