diff options
| author | Richard M. Stallman | 1998-11-17 16:27:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-11-17 16:27:02 +0000 |
| commit | 65a04b969d81dd7835f9bfeec6566e321d5267d4 (patch) | |
| tree | 66ca81fa818c0b4b556997af900d3a9926b3f108 /src/window.c | |
| parent | 433d0b26e0b2f3480a4ddc13272c88a2df491113 (diff) | |
| download | emacs-65a04b969d81dd7835f9bfeec6566e321d5267d4.tar.gz emacs-65a04b969d81dd7835f9bfeec6566e321d5267d4.zip | |
(temp_output_buffer_show): Around temp-buffer-show-hook,
don't do save-excursion, just restore selected window.
(window_loop): For UNSHOW_BUFFER, always do consider minibuffer windows.
Diffstat (limited to 'src/window.c')
| -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); |