From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#47806: 28.0.50; `make-frame` frame should probably clone the `environment` parameter into the new frame Date: Fri, 16 Apr 2021 09:05:45 +0300 Message-ID: <831rbaydae.fsf@gnu.org> References: <87k0p39zbo.fsf@thb.lt> <838s5jxt55.fsf@gnu.org> <877dl3ib4a.fsf@thb.lt> <835z0nxr0s.fsf@gnu.org> <871rbbi3o0.fsf@thb.lt> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3357"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47806@debbugs.gnu.org To: Thibault Polge Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 16 08:06:51 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lXHcx-0000na-Jr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Apr 2021 08:06:51 +0200 Original-Received: from localhost ([::1]:55020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXHcw-0007nW-KM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Apr 2021 02:06:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36894) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXHcA-0007B2-Uu for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 02:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lXHcA-0007iD-M2 for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 02:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lXHcA-0000sw-GY for bug-gnu-emacs@gnu.org; Fri, 16 Apr 2021 02:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 06:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47806 X-GNU-PR-Package: emacs Original-Received: via spool by 47806-submit@debbugs.gnu.org id=B47806.16185531593393 (code B ref 47806); Fri, 16 Apr 2021 06:06:02 +0000 Original-Received: (at 47806) by debbugs.gnu.org; 16 Apr 2021 06:05:59 +0000 Original-Received: from localhost ([127.0.0.1]:39911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXHc7-0000se-08 for submit@debbugs.gnu.org; Fri, 16 Apr 2021 02:05:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXHc4-0000sR-Hl for 47806@debbugs.gnu.org; Fri, 16 Apr 2021 02:05:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51714) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXHby-0007Xn-UT; Fri, 16 Apr 2021 02:05:50 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4163 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXHby-00081A-7l; Fri, 16 Apr 2021 02:05:50 -0400 In-Reply-To: <871rbbi3o0.fsf@thb.lt> (message from Thibault Polge on Fri, 16 Apr 2021 00:27:59 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204114 Archived-At: > From: Thibault Polge > Cc: 47806@debbugs.gnu.org > Date: Fri, 16 Apr 2021 00:27:59 +0200 > > > What is the "ancestor frame"? We don't have such relationships > > between frames. And if you mean the frame that was the selected on > > when the other frame was created, I'm not sure I agree that this is an > > indication of whether environment should be copied. > > Yes, that's roughly what I meant by "ancestor". I'd argue to the > contrary that this is a very good indication: those two frames run are > related, they should share their environment instead of the daemon's. > But perhaps my understanding of the problem is biased by my WM issues. > > I meant something just a bit stronger than "was the selection", though. > In my idea, a new frame should inherit the selected frame's environment > if and only if it's being created by an interactive command call. This > excludes, for example, frames created from idle timers, or through a > process filter or a sentinel. This is because, IIUC, interactive > commands need to be called from a frame, so there's really a > nonambiguous "parent" there. I don't think I agree. Interactive invocation could have several layers before it comes to the frame-creation function. For example, I could imagine a command that eventually does (with-selected-frame FRAME (make-frame ...)) IOW, the frame that is the selected one when a command is invoked is a very weak indication of any "parent-child" relationship. I don't think we have anything like that anywhere else in Emacs, except with child frames.