all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <mwd@md5i.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Alan Mackenzie <acm@muc.de>, emacs-devel@gnu.org
Subject: Re: What are invisible frames for?
Date: Thu, 22 Apr 2021 09:54:11 -0400	[thread overview]
Message-ID: <87v98eo264.fsf@md5i.com> (raw)
In-Reply-To: <jwva6pqjyjb.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 22 Apr 2021 08:31:35 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

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

I know that "emacs --daemon" creates a frame that isn't displayed.  I
don't know if that frame is an "invisible frame" by this definition, but
I thought I'd mention it, just in case.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



  reply	other threads:[~2021-04-22 13:54 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
2021-04-22 13:54   ` Michael Welsh Duggan [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87v98eo264.fsf@md5i.com \
    --to=mwd@md5i.com \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.