all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#3302: Frame deletion with 'force fails
Date: Fri, 15 May 2009 17:48:50 -0700	[thread overview]
Message-ID: <F46AC1EA-C47D-4A0D-B6A6-C89C1F6BFA67@gmail.com> (raw)

In an Emacs -Q (recent CVS, NS port), doing the following right after  
startup:

   (delete-frame (selected-frame) t)

will lead to an "Attempt to delete the only frame" error.  This seems  
needless in non-X/non-Windows environments.

frame.c, delete_frame():
   /* x_connection_closed must have set FORCE to `noelisp' in order
      to delete the last frame, if it is gone.  */
   if (NILP (XCDR (Vframe_list)) && !EQ (force, Qnoelisp))
     error ("Attempt to delete the only frame");

If there are technical reasons for this, it would be good if the doc  
string for `delete-frame' was updated.









         reply	other threads:[~2009-05-16  0:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-22  4:07 bug#3302: closing this David Reitter
2009-05-16  0:48 ` David Reitter [this message]
2009-05-17 20:31   ` bug#3302: Frame deletion with 'force fails Stefan Monnier
2009-05-18  2:41     ` David Reitter
2009-05-18  3:51       ` Stefan Monnier
2009-05-18  3:58         ` David Reitter
2009-05-22  4:15   ` bug#3302: marked as done (Frame deletion with 'force fails) Emacs bug Tracking System
2009-05-22  4:58 ` bug#3302: closing this Jason Rumney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F46AC1EA-C47D-4A0D-B6A6-C89C1F6BFA67@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=3302@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.