diff options
| author | Richard M. Stallman | 1997-04-25 00:44:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-25 00:44:48 +0000 |
| commit | 0b1cf3999de6c92171337e1803e42ec6f5d8db78 (patch) | |
| tree | bbc27a2a98ec0b5416bcdcde3138df364cf316c4 /src | |
| parent | 26808bb3a74f8f98af76732673b23ef3a632be8e (diff) | |
| download | emacs-0b1cf3999de6c92171337e1803e42ec6f5d8db78.tar.gz emacs-0b1cf3999de6c92171337e1803e42ec6f5d8db78.zip | |
(set_frame_menubar): When widget is new, forget records of old contents.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index a3b5d060a22..7ef1131769a 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1669,6 +1669,11 @@ set_frame_menubar (f, first_time, deep_p) | |||
| 1669 | = (Lisp_Object *) alloca (previous_menu_items_used | 1669 | = (Lisp_Object *) alloca (previous_menu_items_used |
| 1670 | * sizeof (Lisp_Object)); | 1670 | * sizeof (Lisp_Object)); |
| 1671 | 1671 | ||
| 1672 | /* If we are making a new widget, its contents are empty, | ||
| 1673 | do always reinitialize them. */ | ||
| 1674 | if (! menubar_widget) | ||
| 1675 | previous_menu_items_used = 0; | ||
| 1676 | |||
| 1672 | buffer = XWINDOW (FRAME_SELECTED_WINDOW (f))->buffer; | 1677 | buffer = XWINDOW (FRAME_SELECTED_WINDOW (f))->buffer; |
| 1673 | specbind (Qinhibit_quit, Qt); | 1678 | specbind (Qinhibit_quit, Qt); |
| 1674 | /* Don't let the debugger step into this code | 1679 | /* Don't let the debugger step into this code |