From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#33498: 26.1; Unable to delete minibuffer-only+child frames Date: Sun, 25 Nov 2018 18:40:28 +0100 Message-ID: <5BFADE8C.9040500@gmx.at> References: <8736rpfklv.fsf@hochschule-trier.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1543167547 16614 195.159.176.226 (25 Nov 2018 17:39:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Nov 2018 17:39:07 +0000 (UTC) To: Andreas Politz , 33498@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 25 18:39:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQyN4-0004EE-R4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 18:39:02 +0100 Original-Received: from localhost ([::1]:60706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQyPB-0001kX-Es for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Nov 2018 12:41:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gQyP3-0001ju-Dn for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 12:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gQyP0-0005st-7n for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 12:41:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43297) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gQyP0-0005si-4A for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 12:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gQyOz-0003PF-U8 for bug-gnu-emacs@gnu.org; Sun, 25 Nov 2018 12:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Nov 2018 17:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33498 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33498-submit@debbugs.gnu.org id=B33498.154316764813064 (code B ref 33498); Sun, 25 Nov 2018 17:41:01 +0000 Original-Received: (at 33498) by debbugs.gnu.org; 25 Nov 2018 17:40:48 +0000 Original-Received: from localhost ([127.0.0.1]:47555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQyOm-0003Od-67 for submit@debbugs.gnu.org; Sun, 25 Nov 2018 12:40:48 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:38963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gQyOk-0003OQ-1x for 33498@debbugs.gnu.org; Sun, 25 Nov 2018 12:40:46 -0500 Original-Received: from [192.168.1.101] ([46.125.250.102]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lp3sy-1foJef0reG-00eqlD; Sun, 25 Nov 2018 18:40:33 +0100 In-Reply-To: <8736rpfklv.fsf@hochschule-trier.de> X-Provags-ID: V03:K1:eC4rqJ2RIzcmGm3qZIQ6MBhBQAlUBOBXgLUXZcnzK1pjAbnXeKa xB6zSJ4LxbkNF/0VmcrqUgyNpdoeNURSMpR8CCiZeko0mJg/7sKUJ6uTkuJ38RSa097UStf 3c0cSXH+cllPwkFpRsGn4Wr9pRCE1gEL39KwUbcGrw4o9dC3FqIObf+H0vPHafhYyBgFcU+ i9AyGy2xa1qfYxjeR05Yg== X-UI-Out-Filterresults: notjunk:1;V03:K0:xrYMjGgPIw8=:3xurisbwVIfRL09RlYGlEY dzFc9HQjmGLlaHkCtz9L2JGomPOga7IY98IJvRzVYbcXWzSecq0Z77SVnJaXEVrXZ0lw8LiM2 q/Zli69+PNSVsE8Pbx93U4lOyu2BCoz5NnfvqcMuTktvd2qCactQHVb3tMzEiDnfOpzuv12rD Pb1ko7JhkD/6uTkyvFio15hV9B5w6hywGrh6ks0o2fBQOPMdgZ+jqSQ4rq3pLyLmfx46uT/lU tFz0I5bX8QSUYlzp/Qw7M4WHBgYoJnkPxvfcuFgzwzElNgYHvyNhCliwCumFgxNGIXRI7m1YH e4zrySz1MjicIFuya9Vi5IJ/WuTAANWaKDEWuK6/baF3hS2ynNYP4rPDE4DsbglwTqJY5/DD9 w1D70imireJDYNgxmcAIpLlba3CB2m4s3KIG6wIuvLaNgdn1LpiTkosqBfgjB1GJPnejsPE2K HomQPprusFAO6ckuw4YF8V0SVo3YghANALbsbwI8r/xrvPhsSrWqyUuhoP2m7M24WnFFe7y6o D9zN+1DqxgLIlgOIjwbcX+a4EdkAuoN9Fd//R8mU8SEvWX/j+Z7CIRWpkmQNZ5yt2DvbP1hd9 CJc3OatJ1mmN9Ilz779i5xtPFbeK81MGvdKBSudWpzW7NDAQovXZkCs1pCaOVFyRKxIUm5uiK qFZ1agC9iOvj9OwlfmSoS/dyBhgeH6Zezo84C5rLS+N27WMSahis3bmls/0s+34klxWWNPgjL JSI7hY5hEMZuN45Dyctd/5QJgbPrS58l7VpRDvr3qVj6DgF/KqmvGlcaD7/AQQMwzzlvLr2v X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:152760 Archived-At: > When a frame is both the child-frame and the minibuffer-frame of some > other frame, this other frame can not be delete anymore. Right. > (keep-ration . t)))) 'keep-ratio', not 'keep-ration' - but it's not useful here anyway IMO. You probably want to make sure that the child frame auto-resizes, though. I wrote the corresponding code already but it still needs some work: It doesn't yet look at the height of the parent frame and probably should allow for aligning at the bottom of the latter as well. > ;; A workaround is to untie the child frame from its parent before > ;; deleting it. > (set-frame-parameter child-frame 'parent-frame nil) > (delete-frame parent-frame) Correct. But that's just the inverse from what you did when you created the parent-child configuration. So it's not a workaround but the canonical way. BTW, I wrote the reparent code to accomplish doing precisely what you did here, reparenting doesn't make much sense elsewhere. And I plan to document that. But without the possibility to auto-resize child frames, the whole concept is not very attractive yet. Thanks, martin