From: "Óscar Fuentes" <ofv@wanadoo.es>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: Uhm... weird frame behaviour
Date: Mon, 12 Sep 2011 17:34:45 +0200 [thread overview]
Message-ID: <87littrcyy.fsf@wanadoo.es> (raw)
In-Reply-To: 4E6E1D4C.7030601@gmx.at
martin rudalics <rudalics@gmx.at> 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=<value optimized out>)
at /home/oscar/dev/emacs/emacs/src/frame.c:1167
1167 }
(gdb) c
Continuing.
Evaluating (frame-list) gives
(#<frame emacs@qcore 0xf43590> #<frame F1 0xb6e7d0>)
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'.
next prev parent reply other threads:[~2011-09-12 15:34 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-10 19:14 Uhm... weird frame behaviour Lars Magne Ingebrigtsen
2011-09-10 22:13 ` Lars Magne Ingebrigtsen
2011-09-11 9:34 ` martin rudalics
2011-09-11 15:27 ` Lars Magne Ingebrigtsen
2011-09-11 15:44 ` Lars Magne Ingebrigtsen
2011-09-12 9:04 ` martin rudalics
2011-09-12 9:04 ` martin rudalics
2011-09-12 12:22 ` Óscar Fuentes
2011-09-12 12:47 ` martin rudalics
2011-09-12 13:32 ` Óscar Fuentes
2011-09-12 14:55 ` martin rudalics
2011-09-12 15:34 ` Óscar Fuentes [this message]
2011-09-12 16:01 ` Eli Zaretskii
2011-09-12 16:20 ` Eli Zaretskii
2011-09-12 17:16 ` Óscar Fuentes
2011-09-12 17:33 ` Eli Zaretskii
2011-09-12 17:37 ` Eli Zaretskii
2011-09-12 18:26 ` martin rudalics
2011-09-12 19:12 ` Eli Zaretskii
2011-09-13 11:59 ` martin rudalics
2011-09-12 19:17 ` Chong Yidong
2011-09-13 12:00 ` martin rudalics
2011-09-13 12:45 ` Óscar Fuentes
2011-09-13 18:28 ` martin rudalics
2011-09-14 1:34 ` Óscar Fuentes
2011-09-13 15:41 ` Chong Yidong
2011-09-13 18:27 ` martin rudalics
2011-09-13 19:09 ` Chong Yidong
2011-09-12 12:31 ` Óscar Fuentes
2011-09-12 12:47 ` martin rudalics
2011-09-12 13:32 ` Andy Moreton
2011-09-12 13:39 ` Eli Zaretskii
2011-09-12 16:52 ` Lars Magne Ingebrigtsen
2011-09-13 18:28 ` martin rudalics
2011-09-13 20:26 ` Lars Magne Ingebrigtsen
2011-09-10 23:40 ` Rasmus
2011-09-10 23:42 ` Lars Magne Ingebrigtsen
2011-09-10 23:46 ` Rasmus
2011-09-10 23:53 ` Lars Magne Ingebrigtsen
2011-09-11 0:05 ` Óscar Fuentes
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87littrcyy.fsf@wanadoo.es \
--to=ofv@wanadoo.es \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).