From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#36672: 27.0.50; NS build: Creating child frame leads to empty space Date: Tue, 16 Jul 2019 20:28:22 +0100 Message-ID: <20190716192822.GA63701@breton.holly.idiocy.org> References: <04CF7A6F-C1E7-4FE5-B648-8DA8CBD3B1ED@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="36971"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: 36672@debbugs.gnu.org To: Andrii Kolomoiets Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 16 21:29:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnT8P-0009U6-J2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jul 2019 21:29:09 +0200 Original-Received: from localhost ([::1]:51904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnT8N-0006FN-UM for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jul 2019 15:29:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50336) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnT8K-0006FA-Jp for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2019 15:29:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnT8J-0003qM-I9 for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2019 15:29:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hnT8J-0003qD-8c for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2019 15:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hnT8J-0004pt-4k for bug-gnu-emacs@gnu.org; Tue, 16 Jul 2019 15:29:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jul 2019 19:29:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36672 X-GNU-PR-Package: emacs Original-Received: via spool by 36672-submit@debbugs.gnu.org id=B36672.156330531418539 (code B ref 36672); Tue, 16 Jul 2019 19:29:03 +0000 Original-Received: (at 36672) by debbugs.gnu.org; 16 Jul 2019 19:28:34 +0000 Original-Received: from localhost ([127.0.0.1]:51181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnT7q-0004ow-C2 for submit@debbugs.gnu.org; Tue, 16 Jul 2019 15:28:34 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:33533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hnT7o-0004of-Ji for 36672@debbugs.gnu.org; Tue, 16 Jul 2019 15:28:33 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id h19so17460971wme.0 for <36672@debbugs.gnu.org>; Tue, 16 Jul 2019 12:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=+3ZmNLUSisfMy53xBmewpNy+Bv3X/H9YzmEur09AtXo=; b=LCEIxaJtC5HzYu92RGXzvOrwg1VrYVckc8tQx11k1qMqOZBYd9glHhMuAGO5cPZ8+6 cT/B4oYr909xNGu9jfIm2plu54cw8qJfKQftC9Xp6UYERGs1vYubHasu+3uBzWYKLwGV 497aCK9RX+Q2tjZsIGaExhGKyxl8N+7VmPya9pnle3kQPWa7nsDtL71V3fWLO6yvHzQ+ AMBUvAk94Ilvrsrcyh5rqHAQLtylbHHazAJ43kCDHGQppxyYz77tqncCWJJWegQRzs36 +zoq2+qDoUEk8pO8XbIAyjylx3Zcw0rXHJnVTL+rexDfg9PAWyuPSal99Cnr8Vo8bFk9 S2Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=+3ZmNLUSisfMy53xBmewpNy+Bv3X/H9YzmEur09AtXo=; b=jfhD/o2ciYRuqFx9OGu//21pnMQk3uPgiFx2xtqeCZuaRR9D7yFpNUa1asnHpbRcnr KygFjWmcp9/9+d/GDj7esc66Uzp/d8l+0tcmRgA2yoj+i+g7/qr55RdZh5s+OFQ8tvXM gxv8WLC0xaANLI8NMDgvxvIaU3rF4lauWv9JjrnDAQIlMW9iOg2Rj1VD53Os96Q5CxZS eiDNPcuu0Ye6JvVzrXombLLlM7lJK71GUON0buE9DF3f00Dms7HNae+b+Y5AQHbLipXn W4ScONkRD1tGhtPmGGmV1T8q6c8iusWsmVkbHjz6w4AqXKRzguteI/U/Fza4Nbf0eRXs h4+g== X-Gm-Message-State: APjAAAXsb/jYyIf8jiyJ9AoOGUPbjBstFCSj1+RvuiGU0A7v+SR6POHy RQAjbMQYoMQcYMdSXJIriCc= X-Google-Smtp-Source: APXvYqzhGRklI57cabGhPJ1CE4uxCTMERLWmplrEpSbtYkR/4DoBmqMCFLK9slBkAM6MP4z5hpwvXw== X-Received: by 2002:a1c:f515:: with SMTP id t21mr33427824wmh.39.1563305305409; Tue, 16 Jul 2019 12:28:25 -0700 (PDT) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-b0d8-8cf9-dc55-40ba.holly.idiocy.org. [2001:8b0:3f8:8129:b0d8:8cf9:dc55:40ba]) by smtp.gmail.com with ESMTPSA id l8sm36428006wrg.40.2019.07.16.12.28.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jul 2019 12:28:24 -0700 (PDT) Content-Disposition: inline In-Reply-To: <04CF7A6F-C1E7-4FE5-B648-8DA8CBD3B1ED@gmail.com> 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: 209.51.188.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:163203 Archived-At: On Mon, Jul 15, 2019 at 08:38:31PM +0300, Andrii Kolomoiets wrote: > Assume there are only one space - Desktop > 1. emacs -Q > 2. M-x toggle-frame-fullscreen > Now there are two spaces - Desktop and *scratch* > 3. eval (make-frame `((parent-frame . ,(window-frame)))) > Now there are three spaces: > - Desktop > - Empty space named *scratch* with emacs menu > - *scratch* with emacs frames but without menu I hit C-x C-c at this point to exit Emacs and it completely crashed my session. Not great... The patch looks good to me, but lets see if we can find solutions to these other issues. To be honest, given that Apple don’t provide any way to properly deal with spaces, I’d expect this stuff to be handled sensibly by default, but I guess that’s too much to ask. > 1. Removing parent-frame property leaves the frame is same space: > > (let ((new-frame (make-frame `((parent-frame . ,(window-frame)))))) > (modify-frame-parameters new-frame `((parent-frame . nil)))) > > Maybe child frame must go fullscreen if ex-parent frame is in > fullscreen. I suppose the best thing to do would be to move it onto the first space, but there’s no API for that, apparently. Going fullscreen seems like a reasonable work‐around to me. > 2. Setting parent frame after frame creation: > > (let ((frame (window-frame)) > (new-frame (make-frame))) > (modify-frame-parameters new-frame `((parent-frame . ,frame)))) What do you see happening in this case? I’ve got spaces turned on and everything I do just seems to create a new fullscreen space (except when it crashes my session). -- Alan Third