aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frame.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 3e1e4d9e5f2..46cd1fc69dc 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1071,6 +1071,9 @@ but if the second optional argument FORCE is non-nil, you may do so.")
1071 if (NILP (force) && !other_visible_frames (f)) 1071 if (NILP (force) && !other_visible_frames (f))
1072 error ("Attempt to delete the sole visible or iconified frame"); 1072 error ("Attempt to delete the sole visible or iconified frame");
1073 1073
1074 if (NILP (XCONS (Vframe_list)->cdr))
1075 error ("Attempt to delete the only frame");
1076
1074 /* Does this frame have a minibuffer, and is it the surrogate 1077 /* Does this frame have a minibuffer, and is it the surrogate
1075 minibuffer for any other frame? */ 1078 minibuffer for any other frame? */
1076 if (FRAME_HAS_MINIBUF_P (XFRAME (frame))) 1079 if (FRAME_HAS_MINIBUF_P (XFRAME (frame)))