From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: What are invisible frames for? Date: Thu, 22 Apr 2021 08:31:35 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23625"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 22 14:34:17 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZYXA-0005uW-Va for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Apr 2021 14:34:16 +0200 Original-Received: from localhost ([::1]:53856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZYX9-0001ga-Ph for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Apr 2021 08:34:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53318) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZYUf-0000Nj-Ck for emacs-devel@gnu.org; Thu, 22 Apr 2021 08:31:42 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:27558) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZYUc-0005rj-RM for emacs-devel@gnu.org; Thu, 22 Apr 2021 08:31:40 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 6799544038A; Thu, 22 Apr 2021 08:31:37 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id E929044019E; Thu, 22 Apr 2021 08:31:35 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1619094695; bh=oX3Hhys/Pmo1qIblkck8cUdq2J7tcXWDrW8Agv/qULM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=C9NA8jeALbFTelgYMxh60o8DJvZZi9nZ3/4nJkEDnZBExF34xtFyWg72ylS2Dq3Jr ovl0Y6bPs5Tg3VqVCgGBWtRc+O8ljwGNqHOPy4mI5QFvvCI7uHWk2K5UGh2gtbTcD0 Zcw+j6v5xJWSXycES7bMTDisJBTwiPxil/wd7PoLf3mFrkKjPy/4yFBvp+kdebIYKj DKQCsPi9qaQOiY/2YeNu2fCwdPqZcwL4lmp8H5539wAPSjbU6xBTMw0PqVFF4q+pM+ +hLWqzU9IfwfmdizDXKX1wkCnxtrMR5sNT131eZWji1/CFDivFWod7fF6WmN/T9ZnF x8s4CT7y+dgkg== Original-Received: from alfajor (104-222-126-84.cpe.teksavvy.com [104.222.126.84]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BE84C120310; Thu, 22 Apr 2021 08:31:35 -0400 (EDT) In-Reply-To: (Alan Mackenzie's message of "Thu, 22 Apr 2021 10:09:10 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268275 Archived-At: > 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