]> git.eshelyaron.com Git - emacs.git/commitdiff
(temp_output_buffer_show): Around temp-buffer-show-hook,
authorRichard M. Stallman <rms@gnu.org>
Tue, 17 Nov 1998 16:27:02 +0000 (16:27 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 17 Nov 1998 16:27:02 +0000 (16:27 +0000)
don't do save-excursion, just restore selected window.

(window_loop): For UNSHOW_BUFFER, always do consider minibuffer windows.

src/window.c

index 41bb492ffdc2e2056272c01ca7fc70fd22cac848..1198b05a84a735788068ef29c92b11d63da25c5d 100644 (file)
@@ -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.  */
       if (! MINI_WINDOW_P (XWINDOW (w))
+         /* 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);