Mercurial > emacs
changeset 18698:52271ad26a1d
(Fdelete_frame): Always err for deleting the only frame.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 09 Jul 1997 08:03:08 +0000 |
parents | 2185491b8d24 |
children | c6cf53a7da72 |
files | src/frame.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/frame.c Wed Jul 09 06:56:04 1997 +0000 +++ b/src/frame.c Wed Jul 09 08:03:08 1997 +0000 @@ -1071,6 +1071,9 @@ 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)))