From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Uhm... weird frame behaviour Date: Mon, 12 Sep 2011 17:34:45 +0200 Message-ID: <87littrcyy.fsf@wanadoo.es> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315841704 3904 80.91.229.12 (12 Sep 2011 15:35:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Sep 2011 15:35:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 12 17:35:00 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 1R38XE-0000XT-MZ for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2011 17:35:00 +0200 Original-Received: from localhost ([::1]:40985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R38X8-0002Ro-OL for ged-emacs-devel@m.gmane.org; Mon, 12 Sep 2011 11:34:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R38X6-0002Qh-5p for emacs-devel@gnu.org; Mon, 12 Sep 2011 11:34:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R38X4-0007T1-QX for emacs-devel@gnu.org; Mon, 12 Sep 2011 11:34:52 -0400 Original-Received: from impaqm1.telefonica.net ([213.4.138.17]:23807 helo=telefonica.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R38X4-0007Sv-Gi for emacs-devel@gnu.org; Mon, 12 Sep 2011 11:34:50 -0400 Original-Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm1.telefonica.net with bizsmtp id XqMk1h01V2h2L9m01raoQA; Mon, 12 Sep 2011 17:34:48 +0200 Original-Received: from qcore ([83.59.1.185]) by IMPmailhost3.adm.correo with BIZ IMP id Xram1h00m3zVkuj1jranJ1; Mon, 12 Sep 2011 17:34:47 +0200 X-Brightmail-Tracker: AAAAAA== X-original-sender: 981711563@telefonica.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.4.138.17 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:143937 Archived-At: martin rudalics writes: >>> This would constitute a bug by itself. Does it also happen when you do >>> `delete-windows-on' for the only visible buffer? >> >> Yes, the frame is deleted. >> >> Setting window-auto-delete to nil or 'window does not help. >> >> Just tried again with emacs -Q --daemon : same problem. >> >>> What does `other-visible-frames-p' return when you're on "the only >>> frame of your Emacs session"? >> >> t > > I don't understand that. Is the daemon frame iconified? AFAIK the daemon has no frame. The user must create one. I do that with `emacsclient -c -n'. > If nobody can > tell, could you step through other_visible_frames to find out why there > are two visible frames? Indeed, the function is counting two visible frames: Breakpoint 1, other_visible_frames (f=0xf43590) at /home/oscar/dev/emacs/emacs/src/frame.c:1120 1120 { (gdb) n 1123 if (f == SELECTED_FRAME ()) (gdb) print f $1 = (FRAME_PTR) 0xf43590 (gdb) n 1128 for (frames = Vframe_list; (gdb) 1134 this = XCAR (frames); (gdb) 1139 if (FRAME_WINDOW_P (XFRAME (this))) (gdb) 1141 x_sync (XFRAME (this)); (gdb) 1142 FRAME_SAMPLE_VISIBILITY (XFRAME (this)); (gdb) 1146 if (FRAME_VISIBLE_P (XFRAME (this)) (gdb) 1151 count++; (gdb) 1130 frames = XCDR (frames)) (gdb) 1128 for (frames = Vframe_list; (gdb) 1134 this = XCAR (frames); (gdb) 1139 if (FRAME_WINDOW_P (XFRAME (this))) (gdb) 1146 if (FRAME_VISIBLE_P (XFRAME (this)) (gdb) 1151 count++; (gdb) 1130 frames = XCDR (frames)) (gdb) 1128 for (frames = Vframe_list; (gdb) 1156 } (gdb) Fother_visible_frames_p (frame=) at /home/oscar/dev/emacs/emacs/src/frame.c:1167 1167 } (gdb) c Continuing. Evaluating (frame-list) gives (# #) I have no idea what frame F1 is. The only displayed frame is `emacs@qcore', which is what `emacsclient -c -n' creates. Just to reiterate, this is with `emacs -Q --daemon'.