diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c index 41bb492ffdc..1198b05a84a 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -1375,6 +1375,8 @@ window_loop (type, obj, mini, frames) | |||
| 1375 | the frame is visible, since Fnext_window skips non-visible frames | 1375 | the frame is visible, since Fnext_window skips non-visible frames |
| 1376 | if that is desired, under the control of frame_arg. */ | 1376 | if that is desired, under the control of frame_arg. */ |
| 1377 | if (! MINI_WINDOW_P (XWINDOW (w)) | 1377 | if (! MINI_WINDOW_P (XWINDOW (w)) |
| 1378 | /* For UNSHOW_BUFFER, we must always consider all windows. */ | ||
| 1379 | || type == UNSHOW_BUFFER | ||
| 1378 | || (mini && minibuf_level > 0)) | 1380 | || (mini && minibuf_level > 0)) |
| 1379 | switch (type) | 1381 | switch (type) |
| 1380 | { | 1382 | { |
| @@ -2394,9 +2396,7 @@ temp_output_buffer_show (buf) | |||
| 2394 | prev_window = selected_window; | 2396 | prev_window = selected_window; |
| 2395 | 2397 | ||
| 2396 | /* Select the window that was chosen, for running the hook. */ | 2398 | /* Select the window that was chosen, for running the hook. */ |
| 2397 | record_unwind_protect (Fset_window_configuration, | 2399 | record_unwind_protect (Fselect_window, prev_window); |
| 2398 | Fcurrent_window_configuration (Qnil)); | ||
| 2399 | |||
| 2400 | select_window_1 (window, 0); | 2400 | select_window_1 (window, 0); |
| 2401 | Fset_buffer (w->buffer); | 2401 | Fset_buffer (w->buffer); |
| 2402 | call1 (Vrun_hooks, Qtemp_buffer_show_hook); | 2402 | call1 (Vrun_hooks, Qtemp_buffer_show_hook); |