Commit e9687ee8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fdelete_frame): Always err for deleting the only frame.

parent c4ede6a2
......@@ -1071,6 +1071,9 @@ but if the second optional argument FORCE is non-nil, you may do so.")
if (NILP (force) && !other_visible_frames (f))
error ("Attempt to delete the sole visible or iconified frame");
if (NILP (XCONS (Vframe_list)->cdr))
error ("Attempt to delete the only frame");
/* Does this frame have a minibuffer, and is it the surrogate
minibuffer for any other frame? */
if (FRAME_HAS_MINIBUF_P (XFRAME (frame)))
......
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