Commit 65a04b96 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(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.
parent 433d0b26
......@@ -1375,6 +1375,8 @@ window_loop (type, obj, mini, frames)
the frame is visible, since Fnext_window skips non-visible frames
if that is desired, under the control of frame_arg. */
/* For UNSHOW_BUFFER, we must always consider all windows. */
|| type == UNSHOW_BUFFER
|| (mini && minibuf_level > 0))
switch (type)
......@@ -2394,9 +2396,7 @@ temp_output_buffer_show (buf)
prev_window = selected_window;
/* Select the window that was chosen, for running the hook. */
record_unwind_protect (Fset_window_configuration,
Fcurrent_window_configuration (Qnil));
record_unwind_protect (Fselect_window, prev_window);
select_window_1 (window, 0);
Fset_buffer (w->buffer);
call1 (Vrun_hooks, Qtemp_buffer_show_hook);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment