]> code.delx.au - gnu-emacs/commitdiff
(Fbury_buffer): Undo previous change.
authorRichard M. Stallman <rms@gnu.org>
Sat, 28 Jun 1997 07:56:29 +0000 (07:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 28 Jun 1997 07:56:29 +0000 (07:56 +0000)
src/buffer.c

index baa7f6104d465351d430d3db483430226441aaa2..c155ec172c9644d8eec54d62bfb753b9c6c70983 100644 (file)
@@ -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;