From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#3302: Frame deletion with 'force fails Date: Sun, 17 May 2009 23:51:16 -0400 Message-ID: References: <66CADE2D-3FA6-4467-BA39-AB7BC0DF6767@gmail.com> Reply-To: Stefan Monnier , 3302@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1242619951 27132 80.91.229.12 (18 May 2009 04:12:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2009 04:12:31 +0000 (UTC) Cc: 3302@emacsbugs.donarmstrong.com To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 18 06:12:23 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M5uD6-0005VN-IU for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2009 06:12:20 +0200 Original-Received: from localhost ([127.0.0.1]:37523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5uD5-0007qR-LK for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 May 2009 00:12:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5uCq-0007gv-GM for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 00:12:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5uCl-0007dk-GY for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 00:12:03 -0400 Original-Received: from [199.232.76.173] (port=55921 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5uCl-0007db-B9 for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 00:11:59 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60791) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M5uCk-0003uf-SN for bug-gnu-emacs@gnu.org; Mon, 18 May 2009 00:11:59 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4I4Buj1028544; Sun, 17 May 2009 21:11:56 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n4I403MQ024235; Sun, 17 May 2009 21:00:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 18 May 2009 04:00:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3302 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3302-submit@emacsbugs.donarmstrong.com id=B3302.124261863422314 (code B ref 3302); Mon, 18 May 2009 04:00:03 +0000 Original-Received: (at 3302) by emacsbugs.donarmstrong.com; 18 May 2009 03:50:34 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n4I3oVGa022304 for <3302@emacsbugs.donarmstrong.com>; Sun, 17 May 2009 20:50:32 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAEB4EEpMCovv/2dsb2JhbACBT8xyhAEFhWo X-IronPort-AV: E=Sophos;i="4.41,208,1241409600"; d="scan'208";a="38721848" Original-Received: from 76-10-139-239.dsl.teksavvy.com (HELO pastel.home) ([76.10.139.239]) by ironport2-out.teksavvy.com with ESMTP; 17 May 2009 23:50:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A89F38096; Sun, 17 May 2009 23:51:16 -0400 (EDT) In-Reply-To: <66CADE2D-3FA6-4467-BA39-AB7BC0DF6767@gmail.com> (David Reitter's message of "Sun, 17 May 2009 22:41:43 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 18 May 2009 00:12:03 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27955 Archived-At: > After all, the menu bar may still be visible (doesn't need a frame). Oh, I see. Yes, under NS it might make sense. > I looked some more at the code (mainly by enabling frame deletion in this > case), and because we expect there to be a selected frame pretty much at > all times, I don't think this can be fixed. (But I would hope I'm wrong.) It's easy to fix: just provide some special frame for it (one that isn't displayed). > Does Emacs in daemon mode run with a special event loop? No. But it has a special terminal (to a large extent, the same as used for --batch mode), so it does have a "selected-frame". > I'd be happy for this to be closed as a "wontfix" bug, or if the > delete-frame doc string was improved. I'm not opposed to installing NS-specific changes to address this problem, but they will need to be made elsewhere since, as you've noticed, too much of the code relies on the existence of a selected-frame. Stefan