HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
26808bb
)
(set_frame_menubar): When widget is new, forget records of old contents.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 25 Apr 1997 00:44:48 +0000
(
00:44
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 25 Apr 1997 00:44:48 +0000
(
00:44
+0000)
src/xmenu.c
patch
|
blob
|
blame
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index
a3b5d06
..
7ef1131
100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-1669,6
+1669,11
@@
set_frame_menubar (f, first_time, deep_p)
= (Lisp_Object *) alloca (previous_menu_items_used
* sizeof (Lisp_Object));
+ /* If we are making a new widget, its contents are empty,
+ do always reinitialize them. */
+ if (! menubar_widget)
+ previous_menu_items_used = 0;
+
buffer = XWINDOW (FRAME_SELECTED_WINDOW (f))->buffer;
specbind (Qinhibit_quit, Qt);
/* Don't let the debugger step into this code