Commit 77270fac authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(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.
parent 06466d9a
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
......
......@@ -1236,6 +1236,17 @@ with SIGHUP.")
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment