unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Frame visibility
@ 2016-11-29 12:37 Joost Kremers
  2016-12-05 14:35 ` Michael Heerdegen
  0 siblings, 1 reply; 4+ messages in thread
From: Joost Kremers @ 2016-11-29 12:37 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Hi,

The Elisp manual says that a frame can be visible, invisible or 
iconified. Visible and iconified (a.k.a. minimized) are clear, but 
when exactly is a frame invisible? And what happens if I use 
`select-window' on a window that is displayed in an invisible 
window?

TIA

Joost



-- 
Joost Kremers
Life has its moments



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

* Re: Frame visibility
  2016-11-29 12:37 Frame visibility Joost Kremers
@ 2016-12-05 14:35 ` Michael Heerdegen
  2016-12-05 14:50   ` Stefan Monnier
  2016-12-05 15:26   ` tomas
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Heerdegen @ 2016-12-05 14:35 UTC (permalink / raw)
  To: Joost Kremers; +Cc: help-gnu-emacs@gnu.org

Joost Kremers <joostkremers@fastmail.fm> writes:

> The Elisp manual says that a frame can be visible, invisible or
> iconified. Visible and iconified (a.k.a. minimized) are clear, but
> when exactly is a frame invisible?

AFAIU the manual, an invisible frame is just not displayed (...visible),
so it's like "iconified" but without an icon, I guess.  With other
words: something like minimizing implemented in Emacs.

> And what happens if I use `select-window' on a window that is
> displayed in an invisible window?

Why don't you just try it out (without any guarantee from my side, if
your whole computer gets invisible, I won't pay for it).


Michael.



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

* Re: Frame visibility
  2016-12-05 14:35 ` Michael Heerdegen
@ 2016-12-05 14:50   ` Stefan Monnier
  2016-12-05 15:26   ` tomas
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2016-12-05 14:50 UTC (permalink / raw)
  To: help-gnu-emacs

>> And what happens if I use `select-window' on a window that is
>> displayed in an invisible window?

Nothing unusual: it makes the window "selected", unsurprisingly, so
after that `selected-window` will return that (invisible) window.

If redisplay happens when an invisible window is selected, then none of
the visible windows will use the mode-line face that corresponds to the
selected window.  And depending on various other thing, it may also be
that none of the Emacs windows will have focus.


        Stefan




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

* Re: Frame visibility
  2016-12-05 14:35 ` Michael Heerdegen
  2016-12-05 14:50   ` Stefan Monnier
@ 2016-12-05 15:26   ` tomas
  1 sibling, 0 replies; 4+ messages in thread
From: tomas @ 2016-12-05 15:26 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: Joost Kremers, help-gnu-emacs@gnu.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Dec 05, 2016 at 03:35:55PM +0100, Michael Heerdegen wrote:
> Joost Kremers <joostkremers@fastmail.fm> writes:
> 
> > The Elisp manual says that a frame can be visible, invisible or
> > iconified. Visible and iconified (a.k.a. minimized) are clear, but
> > when exactly is a frame invisible?
> 
> AFAIU the manual, an invisible frame is just not displayed (...visible),
> so it's like "iconified" but without an icon, I guess.  With other
> words: something like minimizing implemented in Emacs.

Exactly. This is window manager parlance. Those things correspond to
the ICCCM values "Normal", "Iconic" and "Withdrawn" values of the
(X) window's (which is an Emacs frame) WM_STATE property[1].

However the window manager decides to represent those things, they
are sometimes creative :-)

All Emacs does (all Emacs *can* do) is to request the style from
the WM, by setting some X properties on its windows (frames). The
window manager, as configured by the user then maps those abstract
requests to a concrete appearance.

I do like it that way. Imagine my browser could start deciding on
how its decoration looks, controlled by some random shi^H^H^H
obscure javascript off some obscure rag-du-jour page. No, thanks.

As Michael says... perhaps they hide your computer.

Regards

[1] https://tronche.com/gui/x/icccm/sec-4.html
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlhFh0EACgkQBcgs9XrR2kZRSgCfcKVIdYKcVkLAe7JxzQTPhgnU
Jr8An1cVYadYKoTx4FpLvJzUQ9Q85YKy
=GgWE
-----END PGP SIGNATURE-----



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

end of thread, other threads:[~2016-12-05 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-29 12:37 Frame visibility Joost Kremers
2016-12-05 14:35 ` Michael Heerdegen
2016-12-05 14:50   ` Stefan Monnier
2016-12-05 15:26   ` tomas

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