unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: What are invisible frames for?
Date: Thu, 22 Apr 2021 08:31:35 -0400	[thread overview]
Message-ID: <jwva6pqjyjb.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <YIFLRsawLKHiXqGg@ACM> (Alan Mackenzie's message of "Thu, 22 Apr 2021 10:09:10 +0000")

> In src/frame.c, the notion of an @dfn{invisible frame} is implemented.
> On a GUI, when a frame is in this invisible state, it appears to be
> completely inaccessible to the user - it doesn't appear anywhere on the
> GUI, there appear to be no commands to access it, and so on.  Only a
> Lisp form can do anything with it, like making it visible again.
>
> What is this facility used for?

I don't know what was it's original intention, but I know it's used in
`server-select-display` (via the frame property `visibility`) to create
a dummy frame that lets us "select a display" without having to select
any of its "real" frames (because it doesn't have any yet).

I have the impression that I've used it elsewhere in a similar "hackish"
way but can neither remember where nor why.  And maybe I'm just misremembering.


        Stefan




  parent reply	other threads:[~2021-04-22 12:31 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-22 10:09 What are invisible frames for? Alan Mackenzie
2021-04-22 12:15 ` martin rudalics
2021-04-22 13:18   ` Stefan Monnier
2021-04-22 21:23     ` Clément Pit-Claudel
2021-04-22 14:13   ` Alan Mackenzie
2021-04-22 16:09     ` [External] : " Drew Adams
2021-04-22 12:31 ` Stefan Monnier [this message]
2021-04-22 13:54   ` Michael Welsh Duggan
2021-04-22 14:08     ` Stefan Monnier
2021-04-22 14:13     ` Eli Zaretskii
2021-04-22 14:14 ` tumashu

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=jwva6pqjyjb.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    /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).