changeset 18485:d6e8b92585e9

(Fbury_buffer): Undo previous change.
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 Jun 1997 07:56:29 +0000
parents fade5fd2fab4
children 83ff1ecdb0e3
files src/buffer.c
diffstat 1 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Sat Jun 28 03:17:03 1997 +0000
+++ b/src/buffer.c	Sat Jun 28 07:56:29 1997 +0000
@@ -1558,6 +1558,9 @@
   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 @@
       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;