# HG changeset patch # User Gerd Moellmann # Date 982589361 0 # Node ID 0cee3a77c592230b7655ad9ede3788e27c506780 # Parent 9e85a67eae3a8953e9432dca16ad30295eca9819 (set_frame_menubar): Run acivate-menu-bar-hook with safe_run_hooks. diff -r 9e85a67eae3a -r 0cee3a77c592 src/xmenu.c --- a/src/xmenu.c Mon Feb 19 12:23:46 2001 +0000 +++ b/src/xmenu.c Mon Feb 19 13:29:21 2001 +0000 @@ -1,5 +1,6 @@ /* X Communication module for terminals which understand the X protocol. - Copyright (C) 1986, 88, 93, 94, 96, 99, 2000 Free Software Foundation, Inc. + Copyright (C) 1986, 88, 93, 94, 96, 99, 2000, 2001 + Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -1684,7 +1685,8 @@ set_buffer_internal_1 (XBUFFER (buffer)); /* 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 menubar from the value. */ if (! NILP (Vlucid_menu_bar_dirty_flag))