diff options
| author | Karl Heuer | 1995-05-29 04:05:18 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-29 04:05:18 +0000 |
| commit | dcb9e676a79970fc9a287b23105032389f9d0e74 (patch) | |
| tree | f0073975ed175418303c00b0a79d672365eb54c0 /src | |
| parent | be67270a7897c1648f659fb238125bcf05034d7a (diff) | |
| download | emacs-dcb9e676a79970fc9a287b23105032389f9d0e74.tar.gz emacs-dcb9e676a79970fc9a287b23105032389f9d0e74.zip | |
(update_menu_bar): Call set_frame_menubar with proper buffer current.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 6fb7a30ed01..3bff545f922 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1261,11 +1261,11 @@ update_menu_bar (f, save_match_data) | |||
| 1261 | call1 (Vrun_hooks, Qmenu_bar_update_hook); | 1261 | call1 (Vrun_hooks, Qmenu_bar_update_hook); |
| 1262 | current_buffer = XBUFFER (w->buffer); | 1262 | current_buffer = XBUFFER (w->buffer); |
| 1263 | FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f)); | 1263 | FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f)); |
| 1264 | current_buffer = prev; | ||
| 1265 | #ifdef USE_X_TOOLKIT | 1264 | #ifdef USE_X_TOOLKIT |
| 1266 | set_frame_menubar (f, 0); | 1265 | set_frame_menubar (f, 0); |
| 1267 | #endif /* USE_X_TOOLKIT */ | 1266 | #endif /* USE_X_TOOLKIT */ |
| 1268 | 1267 | ||
| 1268 | current_buffer = prev; | ||
| 1269 | unbind_to (count, Qnil); | 1269 | unbind_to (count, Qnil); |
| 1270 | } | 1270 | } |
| 1271 | } | 1271 | } |