From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Re: What are invisible frames for? Date: Thu, 22 Apr 2021 09:54:11 -0400 Message-ID: <87v98eo264.fsf@md5i.com> 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="15990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 22 15:57:19 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 1lZZpU-0003q8-SB for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Apr 2021 15:57:16 +0200 Original-Received: from localhost ([::1]:46258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZZpT-0003pv-St for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Apr 2021 09:57:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZZmZ-000223-KS for emacs-devel@gnu.org; Thu, 22 Apr 2021 09:54:15 -0400 Original-Received: from md5i.com ([75.151.244.229]:57502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZZmX-0004c4-RM for emacs-devel@gnu.org; Thu, 22 Apr 2021 09:54:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ZXUKJAIsg3DUCE/pbI5MCp4gHRvqEfE0A+7zgk9/v8w=; b=IyJXyYaVOrcb42GvkB6E8KFMhx xb6gXcECQhLTWsyWJ1H1ESp1BE/2ZgA95LxTYjYjXoDIId1bOq+JxcrNlr7Tp06/jnFcH9kTxBCwv BhONF1ET6h9DDYdWPz9rbU1HH; Original-Received: from abode.md5i.com ([192.168.177.1] helo=miko) by md5i.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lZZmV-005XcN-8v; Thu, 22 Apr 2021 09:54:11 -0400 In-Reply-To: (Stefan Monnier's message of "Thu, 22 Apr 2021 08:31:35 -0400") Received-SPF: pass client-ip=75.151.244.229; envelope-from=mwd@md5i.com; helo=md5i.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-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:268277 Archived-At: Stefan Monnier 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)