unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10120: 24.0.91; frame-visible-p returns t, but frame not visible/iconified
@ 2011-11-23 17:43 Drew Adams
  2011-11-23 20:12 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2011-11-23 17:43 UTC (permalink / raw)
  To: 10120

Probably not very useful as is - sorry about that.  Take this as an FYI,
in case you get further, related reports.
 
With my setup (not with emacs -Q), at some point I got into a state
where there was a buffer associated with a window in a frame, and that
frame was neither visible anywhere nor iconified.  It was not listed in
the Windows task bar, which lists each frame.
 
Yet Emacs thought that that the frame was visible (e.g. frame-visible-p
returned t).  The buffer existed and was live, but it was displayed in
no visible or iconified window/frame anywhere.
 
Emacs functions such as raise-frame and select-frame-set-input-focus
returned normally, as if they worked, and the latter even deselected the
current frame (unhighlighted the title bar and borders) as if it had
selected another frame.  But the target frame was not visible anywhere
(and not just off-screen, as determined by the Windows task-bar apps
list).
 
Here are some things I noted when in the debugger, in case it helps:
 
* display-buffer(#<buffer foo.el> t)
* pop-to-buffer(#<buffer foo.el> t nil)
* switch-to-buffer-other-frame(#<buffer foo.el>)
 
Then:
* display-buffer--maybe-same-window(#<buffer foo.el>
                                    ((inhibit-same-window . t)))
returned nil.
 
Then:
* get-buffer-window-list(#<buffer foo.el> nomini 0)
returned (#<window 50 on foo.el>)
 
Then:
* display-buffer-record-window(reuse #<window 50 on foo.el>
                               #<buffer foo.el>)
returned nil.
 
Then:
* window-parameter(#<window 50 on foo.el> quit-restore)
returned nil.  Note that this window was visible nowhere.
 
Then:
* frame-visible-p(#<frame foo.el 047B6E00>)
returned t, even though the frame is not visible anywhere
and is not in the list of frames in the Windows task bar.
* window-frame(#<window 50 on foo.el>)
returned #<frame foo.el 047B6E00>.
* window--display-buffer-1(#<window 50 on foo.el>)
 
Then:
* raise-frame(#<frame foo.el 047B6E00>)
returned nil.
 
Then:
* select-window(#<window 50 on foo.el>)
returned #<window 50 on foo.el>.
 
So display-buffer-reuse-window, and hence display-buffer,
returned #<window 50 on foo.el>.  And pop-to-buffer, and hence
switch-to-buffer-other-frame, returned buffer #<buffer foo.el>.
 
HTH in some way (ring a bell?).  Sorry I don't have more info.

In GNU Emacs 24.0.91.1 (i386-mingw-nt5.1.2600) of 2011-11-21 on MARVIN
 Windowing system distributor `Microsoft Corp.', version 5.1.2600
 configured using `configure --with-gcc (4.6) --no-opt --cflags
 -ID:/devel/emacs/libs/libXpm-3.5.8/include
 -ID:/devel/emacs/libs/libXpm-3.5.8/src
 -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
 -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
 -ID:/devel/emacs/libs/giflib-4.1.4-1/include
 -ID:/devel/emacs/libs/jpeg-6b-4/include
 -ID:/devel/emacs/libs/tiff-3.8.2-1/include
 -ID:/devel/emacs/libs/gnutls-2.10.1/include --ldflags
 -LD:/devel/emacs/libs/gnutls-2.10.1/lib'
 






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#10120: 24.0.91; frame-visible-p returns t, but frame not visible/iconified
  2011-11-23 17:43 bug#10120: 24.0.91; frame-visible-p returns t, but frame not visible/iconified Drew Adams
@ 2011-11-23 20:12 ` Stefan Monnier
  2011-11-23 20:31   ` Drew Adams
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2011-11-23 20:12 UTC (permalink / raw)
  To: Drew Adams; +Cc: 10120

> Yet Emacs thought that that the frame was visible (e.g. frame-visible-p
> returned t).  The buffer existed and was live, but it was displayed in
> no visible or iconified window/frame anywhere.
 
What does (frame-terminal <theframe>) return?


        Stefan





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#10120: 24.0.91; frame-visible-p returns t, but frame not visible/iconified
  2011-11-23 20:12 ` Stefan Monnier
@ 2011-11-23 20:31   ` Drew Adams
  2013-02-08  1:18     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2011-11-23 20:31 UTC (permalink / raw)
  To: 'Stefan Monnier'; +Cc: 10120

> > Yet Emacs thought that that the frame was visible (e.g. 
> > frame-visible-p returned t).  The buffer existed and was
> > live, but it was displayed in no visible or iconified
> > window/frame anywhere.
>  
> What does (frame-terminal <theframe>) return?

I'm sorry, I no longer have the session.  I tried to get some info by stepping
through the debugger, but didn't think of evaling `frame-terminal'.  If I come
across this symptom again I'll find that out.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#10120: 24.0.91; frame-visible-p returns t, but frame not visible/iconified
  2011-11-23 20:31   ` Drew Adams
@ 2013-02-08  1:18     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2013-02-08  1:18 UTC (permalink / raw)
  To: 10120-done


Nothing can be done with this.
May as well open a new report if it ever recurs, rather than leaving
this open.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-02-08  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-23 17:43 bug#10120: 24.0.91; frame-visible-p returns t, but frame not visible/iconified Drew Adams
2011-11-23 20:12 ` Stefan Monnier
2011-11-23 20:31   ` Drew Adams
2013-02-08  1:18     ` Glenn Morris

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).