unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* What are invisible frames for?
@ 2021-04-22 10:09 Alan Mackenzie
  2021-04-22 12:15 ` martin rudalics
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Alan Mackenzie @ 2021-04-22 10:09 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

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?  There're uses in dframe.el, and there's
something in cl-extra.el saying it's "support for setf".  There aren't
really any uses in the C files - just one call in minibuf.c when
something else has set up an option for it.

So what is this thing for?

The reason I ask is that making frames invisible (or even iconified)
affects any minibuffers on those frames.  The current handling, which is
old, moves the minibuffers onto another frame.  This conflicts with the
meaning of the (newish) variable minibuffer-follows-selected-frame when
its value isn't t.  In particular, when m-f-s-f is nil, minibuffers are
defined to stay on the frame they were first created on.

So, to determine how these MBs should be handled, it would be very
useful to understand what invisible frames are used for.

This has relevance for bug #47766.

Thanks in advance!

-- 
Alan Mackenzie (Nuremberg, Germany).



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

end of thread, other threads:[~2021-04-22 21:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2021-04-22 14:08     ` Stefan Monnier
2021-04-22 14:13     ` Eli Zaretskii
2021-04-22 14:14 ` tumashu

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