From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Uhm... weird frame behaviour Date: Mon, 12 Sep 2011 20:26:15 +0200 Message-ID: <4E6E4EC7.8070901@gmx.at> References: <4E6C80BF.2060002@gmx.at> <4E6DCB0A.4060605@gmx.at> <87mxeaar26.fsf@wanadoo.es> <4E6DFF55.3000708@gmx.at> <87ehzlnaxj.fsf@wanadoo.es> <4E6E1D4C.7030601@gmx.at> <87littrcyy.fsf@wanadoo.es> <831uvlyckf.fsf@gnu.org> <83zki9wx4u.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1315851991 16149 80.91.229.12 (12 Sep 2011 18:26:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 18:26:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 12 20:26:25 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3BD6-0006EY-9N for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2011 20:26:24 +0200 Original-Received: from localhost ([::1]:40696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3BD5-0004hQ-QK for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2011 14:26:23 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3BD3-0004hL-Ch for emacs-devel@gnu.org; Mon, 12 Sep 2011 14:26:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3BD1-0001AQ-Gc for emacs-devel@gnu.org; Mon, 12 Sep 2011 14:26:21 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:51705) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1R3BD0-00019u-I1 for emacs-devel@gnu.org; Mon, 12 Sep 2011 14:26:19 -0400 Original-Received: (qmail invoked by alias); 12 Sep 2011 18:26:16 -0000 Original-Received: from 62-47-43-85.adsl.highway.telekom.at (EHLO [62.47.43.85]) [62.47.43.85] by mail.gmx.net (mp035) with SMTP; 12 Sep 2011 20:26:16 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+EOIR6R7uElDLdRCWjZ+3S+NXL5kq/VOLz6v7iGj +2J/hUovvuoMlS User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <83zki9wx4u.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143946 Archived-At: >> Frames whose names are F1, F2, etc. are terminal frames. Is it >> possible that the demonic Emacs doesn't delete the initial terminal >> frame, like an otherwise "normal" interactive session would? > > Answering my own question: yes, that's what happens. Funny. I thought that When Emacs is invoked with the `--daemon' option, it does not create any initial frames, so `initial-window-system' is `nil'. Does it create a frame afterwards? > So Martin, I think other_visible_frames should be augmented for the > fact that when IS_DAEMON is non-zero, there's one frame that is always > there and does not constitute "other frames". This would break `delete-frame' which apparently _should_ delete a frame even if it's the last one in that case. (I think so because nobody ever complained about this fact.) Is there a way to get IS_DAEMON in Elisp, `initial-window-system' is deprecated AFAICT. BTW, the bug should be already present in Emacs 23 when you quit a help frame or a dedicated frame and that frame is the last visible frame. martin