sole visible buffer when we're currently in the mini-buffer, and
give up if so.
+2000-11-21 Gerd Moellmann <gerd@gnu.org>
+
+ * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
+ sole visible buffer when we're currently in the mini-buffer, and
+ give up if so.
+
2000-11-21 Jason Rumney <jasonr@gnu.org>
* w32select.c (Fw32_set_clipboard_data): Save a copy of what is
return Qnil;
}
+ /* Notice if the buffer to kill is the sole visible buffer
+ when we're currently in the mini-buffer, and give up if so. */
+ XSETBUFFER (tem, current_buffer);
+ if (EQ (tem, XWINDOW (minibuf_window)->buffer))
+ {
+ tem = Fother_buffer (buf, Qnil, Qnil);
+ Fset_buffer (tem);
+ if (EQ (buf, tem))
+ return Qnil;
+ }
+
/* Now there is no question: we can kill the buffer. */
#ifdef CLASH_DETECTION