From 0a63b21287ea9de2c4a1aaaa3fd063baa9a2da92 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 28 Jun 1997 07:56:29 +0000 Subject: [PATCH] (Fbury_buffer): Undo previous change. --- src/buffer.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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; -- 2.39.2