From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: [External] : Re: What are invisible frames for? Date: Thu, 22 Apr 2021 16:09:52 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35202"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "emacs-devel@gnu.org" To: Alan Mackenzie , martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 22 18:14:33 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 1lZbyK-0008s5-Oe for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Apr 2021 18:14:32 +0200 Original-Received: from localhost ([::1]:43176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZbyJ-0005CH-P5 for ged-emacs-devel@m.gmane-mx.org; Thu, 22 Apr 2021 12:14:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZbu4-0001RN-4q for emacs-devel@gnu.org; Thu, 22 Apr 2021 12:10:08 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:47256) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZbu0-0002Ac-QE for emacs-devel@gnu.org; Thu, 22 Apr 2021 12:10:07 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13MFo0Q7195313; Thu, 22 Apr 2021 16:09:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=0vY7gdMTFMDNbXSdzSpDGiFAi6kW+25rpwoPgnVXNxM=; b=mNrSAKoEqr3IXEFsET6010L49Dg14qUqw+DgTpbUR++h9qfNvl7jhtBPAiT9RfQL2DgC 8f0u57nmB5m0cqktYd1V4Q8Op/bnT2EdMF8cZr/OMXoLHX6ub0g3dVncsH2ZRAxEljRL KH/Grf0Sqxi8wxATcctlWkfGWYv22GsO06Hg+GgyV0bIoKDnP7XH8clY3+choVCocrUM HVu64PAFENH8DuUEUU+vtgAqu3AlQd9co/FTtPuWKwvr3ecPeTYnneXuiSWvj/BR77SI nb9bdjcymmWdtvUFXtdE3MiUpkZp7pzUzAN4kpN9oBs9P5SpVOpjmRy+FpykpkMqlKel vQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 37yveank17-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Apr 2021 16:09:56 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 13MG9sQ6187094; Thu, 22 Apr 2021 16:09:55 GMT Original-Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2171.outbound.protection.outlook.com [104.47.58.171]) by aserp3030.oracle.com with ESMTP id 383cceg4u6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Apr 2021 16:09:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YssvrpkPOPMpFRFQszP19EXuZZxAGJjJHklP+XkSfRHbamwWGNj/98BQ5rWJPbWJ5endb9hllMhK/rPOFhjjDL3vpoTOWxSSzY5SJwdiH/Z5YxxgXwgGS6Ibn/hofCPpNzCiFSj5+ZVBxFrGe673VvEovBplR2dVUoD93sSI700vmRr6r6Gra2WbJPpZ2C8ca3R+bFnKIXr2DvZYbJah2QFhRyLT4eWHKsLmh885lfbHJ6dPQ50X4V+66hkjGaJ4xCC05umborMphRY9LkJ6ZeBCO+MTXSV+VivMh77zJk6hPIjuIBB+a9FGbxlg7QEQJNZwfslCsFkfzFviM1qMiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0vY7gdMTFMDNbXSdzSpDGiFAi6kW+25rpwoPgnVXNxM=; b=nQ53uXlRNGC3tkbf0BHbJ05YtU8fwIuEEkeQ+Zy6j9o9YJgJYf/NkCW44H/zO1mIX6d5PpIGdYgnT8vmEZM5GDkPrOE4pNlenzJEUdlrzj6Q+ycqbK3Vp+YCUsGbkMgP+cetHH64QTQAr5pivfgryz+jREmwdipurVbYtFDEPXi7FOXHUwCQKv+iImLyjhZ79xz4iKp1PA/WwxmYENrNPCZ60tL0VSchW2fo5mH8xnnp9lemR8FE+XJ1Yb397YxQHq5YpARRl3rvuvEiTaTYuYzD3GyuFLzTU2lrWFX4QNOGc+yfAWFtGy5Tqs4AH2ZA4zz0/IrL7NUVUfTlSsMQQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0vY7gdMTFMDNbXSdzSpDGiFAi6kW+25rpwoPgnVXNxM=; b=SHC9SJ7Ud7FrkQyHRh02vZoO6IrIPsBwddmDRDE2aKxjx1Qyd/+hRDhxNxblunGYip5avx2OtjjFBl0Xxq8kxU4E1JqjppwU3eKhYg5FePP/r8CqGhY2WERirr6O6vKK/mfb55QaP6Ta4sfBB5nOi3SZ9fwyAzR5VvlZzal9snw= Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4588.namprd10.prod.outlook.com (2603:10b6:806:f8::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Thu, 22 Apr 2021 16:09:52 +0000 Original-Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::2109:9725:fd4a:6494%6]) with mapi id 15.20.4065.021; Thu, 22 Apr 2021 16:09:52 +0000 Thread-Topic: [External] : Re: What are invisible frames for? Thread-Index: AQHXN4H4Xi1PIaypZUu1W/g7z1dKG6rAsEsg In-Reply-To: Accept-Language: en-US Content-Language: en-US authentication-results: muc.de; dkim=none (message not signed) header.d=none;muc.de; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0a74b367-9048-4bf8-fb41-08d905a91028 x-ms-traffictypediagnostic: SA2PR10MB4588: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iBlwBoqXdGQ3Nn2yYXnHzXCu1Qp13yEqWkEyiVnfBCfbW7Uh8lQVoKs6ZaPB9M32ogR4Jl0Q3PFXbwrGkxDfOTwGqH9clYGZRZ4gepdOKX+h6EDifj9uiNqUQPFX6TXkb8rknU2mPI7LgT57wFfU/FeEZOGSbNgEX/FwT5pCtmcx7NIjBNQYYRJML2O2BE9YaskIL9yF1Yt5Yz3VR5EkTQjZsyhZ8AVJPqvC1kc8zBNJi41glMC5rQcthVxN446kZ9A7xR7mPUdCPKbtgaQPTB88ygVAKN/S5ekas0JkVwOI1lAJTUM54jm3gLS29OJJxvwOmN/m1/A1l6onYg/Ubg65CVts66kUEIyWw5jKlFY1W3uWO2HG0wT6ACo9hk9s9h9Zlpaia86R8TquIOJdC34maMAmGkJVW/YKBTJ56sQW6volr4Cv3b166s0zNRbkQbczpMM9LFIINpOMX9R4tZvUiCNTsDJXX6nPnDNjjAn2fAfnX2HAHGM/+Q5WySVg6QCkh6wl2DJDT2nBU572hUJ6tdQvK8gGouLKrd9GjeLg0uYsKx2M7INNMP7Apsrp6EtD3eITtkDRUklGYx7C7wKQy6D2/HlfL7O1Dd+ST2GmI8CJsnWllfsMld3v6/0iuCx5DgRGW8j9RpObPBTBzr+jocpVD0d8250toiv1LGTt2qFEXyO6xn3QZDkdouGB x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(346002)(376002)(366004)(39860400002)(136003)(76116006)(71200400001)(66946007)(83380400001)(4326008)(52536014)(2906002)(8676002)(110136005)(9686003)(44832011)(55016002)(186003)(122000001)(966005)(38100700002)(6506007)(5660300002)(8936002)(7696005)(64756008)(66476007)(33656002)(66556008)(86362001)(26005)(316002)(66446008)(478600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?Mj7E5LuKxB0sq4A/Xs1mSvIFe5cJ+cSLiOxVRCWl0LPKvibgggusYmeA3flG?= =?us-ascii?Q?bij8ehasMZn0eGwzm8Ehk13Tcy1xArG37uAi1Ofa9U8+Qn5pA/83hTZatYly?= =?us-ascii?Q?wcgsjOeKdke9WTe57B3esf9MBAjun90/XWDMLDH8VrbgVgMFOTARK9F/rYH3?= =?us-ascii?Q?ilubGRtJXgpj0JyWQC7qs0IHplqM4r/LnnqlVM/zt8v0AsHP1yeFeJCx1uvJ?= =?us-ascii?Q?sjiJbcbEabzSPceSUXy/HcScmA04C733w93y6owExtID9ZlcedixsEAHm9yu?= =?us-ascii?Q?JrmsfZD60rg9x5FSyl2gJhzxqT4zE0AMJlzaGq9Gs1D6/EPkm4yWLJBd357w?= =?us-ascii?Q?CVAH2K7PkYu2lvuDK/zqgFEWqk/Qw65PkkZeGe443yMG0+aLSYxCr4aMJWqa?= =?us-ascii?Q?jh0gckarSV8xMtqc1Wnnd2jRjFntiyEXFYMuDXAUIoYCgeYmZqUbB6RkN849?= =?us-ascii?Q?iWzDznnJK2zBENY7GldZQBTIJP2imF1P9uHWxVwnFOb1eQIcjV9Xo/pfTZlg?= =?us-ascii?Q?JTAX9cahNP/rzpU+b/oQA40tu8aqGVociMBC91H/4Nj+fsXVsQ/AlHrcsDX3?= =?us-ascii?Q?I5xp+yasu3cA1ODmVpiUBnIPiFHMB0wKusPG6SIW5PNyxLxmeyh1nfBJJwj8?= =?us-ascii?Q?IZVy x-ms-exchange-transport-forked: True X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a74b367-9048-4bf8-fb41-08d905a91028 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2021 16:09:52.6965 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: zuKQ8jZ3qKCl7+suOHwZQGGYATEyaUvf4NRn+BDXnL0rm72Hkq1Ve8PaVSYIxG165tEi4VKaSKWkaiDoQWnj4Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4588 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9962 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 spamscore=0 suspectscore=0 mlxscore=0 phishscore=0 malwarescore=0 adultscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104220123 X-Proofpoint-GUID: KxQSvtGRWkj6NkTBJKeRzCKfwGaQvoAD X-Proofpoint-ORIG-GUID: KxQSvtGRWkj6NkTBJKeRzCKfwGaQvoAD X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9962 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 impostorscore=0 phishscore=0 mlxscore=0 suspectscore=0 lowpriorityscore=0 mlxlogscore=999 spamscore=0 bulkscore=0 adultscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104060000 definitions=main-2104220122 Received-SPF: pass client-ip=156.151.31.86; envelope-from=drew.adams@oracle.com; helo=userp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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:268284 Archived-At: > OK. Presumably you set this up by setting the 'visibility frame > parameter. I don't think setting that frame parameter causes > Fmake_frame_invisible to get called. At least, I can't find the call > anywhere. >=20 > I don't think I was clear enough in my OP, but it's calls to > Fmake_frame_invisible which are bothering me. That function moves any > minibuffer on the frame to some other frame. I don't think it should. > That's what I'm trying to sort out. I use the Lisp function `make-frame-invisible'. For example: (defun hide-frame (frame &optional prefix) "Make FRAME invisible. Like `make-frame-invisible', but reads frame name= . Non-nil PREFIX makes it invisible even if all other frames are invisible." (interactive (list (read-frame "Frame to make invisible: "))) (make-frame-invisible (get-a-frame frame) prefix)) (defun show-frame (frame) "Make FRAME visible and raise it, without selecting it. FRAME may be a frame or its name." (interactive (list (read-frame "Frame to make visible: "))) (setq frame (get-a-frame frame)) (make-frame-visible frame) (raise-frame frame)) (defun hide-everything () "Hide all frames of session at once. Iconify minibuffer frame; make all others invisible. Remembers frame configuration in register `C-l' (Control-L). To restore this frame configuration, use `\\[jump-to-register] C-l'." (interactive) (frame-configuration-to-register frame-config-register) (let ((minibuf-frame-name (and (boundp '1on1-minibuffer-frame) (cdr (assq 'name (frame-parameters 1on1-minibuffer-frame))))) (thumfr-thumbify-dont-iconify-flag nil)) ; In `thumb-frm.el'. (dolist (frame (frame-list)) (if (eq minibuf-frame-name (cdr (assq 'name (frame-parameters frame)))) (iconify-frame frame) ; minibuffer frame (make-frame-invisible frame t))))) ; other frames (defun show-hide () "1 frame visible: `show-hide-show-function'; else: `hide-everything'. This acts as a toggle between showing all frames and showing only an iconified minibuffer frame." (interactive) (if (< (length (visible-frame-list)) 2) (funcall show-hide-show-function) (hide-everything))) https://www.emacswiki.org/emacs/download/frame-cmds.el