From: Richard M. Stallman Date: Sat, 28 Jun 1997 07:56:29 +0000 (+0000) Subject: (Fbury_buffer): Undo previous change. X-Git-Tag: emacs-20.1~1461 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a63b21287ea9de2c4a1aaaa3fd063baa9a2da92;p=emacs.git (Fbury_buffer): Undo previous change. --- diff --git a/src/buffer.c b/src/buffer.c index baa7f6104d4..c155ec172c9 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1558,6 +1558,9 @@ selected window if it is displayed there.") if (NILP (buffer)) { XSETBUFFER (buffer, current_buffer); + + /* If we're burying the current buffer, unshow it. */ + Fswitch_to_buffer (Fother_buffer (buffer, Qnil), Qnil); } else { @@ -1569,13 +1572,6 @@ selected window if it is displayed there.") buffer = buf1; } - /* Unshow the buffer in the selected window, if it is there. */ - if (EQ (XWINDOW (selected_window)->buffer, buffer)) - Fswitch_to_buffer (Fother_buffer (buffer, Qnil), Qnil); - /* Otherwise, unshow it in other frames. */ - else - Freplace_buffer_in_windows (buffer); - /* Move buffer to the end of the buffer list. */ { register Lisp_Object aelt, link;