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: Thu, 15 Apr 2021 22:54:27 +0300 Message-ID: <835z0nxr0s.fsf@gnu.org> References: <87k0p39zbo.fsf@thb.lt> <838s5jxt55.fsf@gnu.org> <877dl3ib4a.fsf@thb.lt> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10955"; 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 Thu Apr 15 21:55:13 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 1lX853-0002hj-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 21:55:13 +0200 Original-Received: from localhost ([::1]:44114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX851-0005Kd-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 15:55:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX84s-0005KS-Ls for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55987) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX84s-0001I0-6k for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX84s-0004cp-4r for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:55: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: Thu, 15 Apr 2021 19:55: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.161851648517751 (code B ref 47806); Thu, 15 Apr 2021 19:55:02 +0000 Original-Received: (at 47806) by debbugs.gnu.org; 15 Apr 2021 19:54:45 +0000 Original-Received: from localhost ([127.0.0.1]:39300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX84a-0004cE-Ql for submit@debbugs.gnu.org; Thu, 15 Apr 2021 15:54:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX84V-0004bq-No for 47806@debbugs.gnu.org; Thu, 15 Apr 2021 15:54:43 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43513) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX84P-00014c-TI; Thu, 15 Apr 2021 15:54:33 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2712 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lX84P-0000Xh-8r; Thu, 15 Apr 2021 15:54:33 -0400 In-Reply-To: <877dl3ib4a.fsf@thb.lt> (message from Thibault Polge on Thu, 15 Apr 2021 21:47:01 +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:204098 Archived-At: > From: Thibault Polge > Cc: 47806@debbugs.gnu.org > Date: Thu, 15 Apr 2021 21:47:01 +0200 > > > Doesn't the 'display' parameter fit the bill? > > Not on Wayland, I'm afraid. I believe all the XWayland instances will > have the same value for `display`, which may be a non-usable value. I'm > also not sure that we can go from `display` to the Wayland server. (As > an example, in my case, what I actually need is `SWAYSOCK`). Are you saying that make-frame-on-display works differently under Wayland? > > How do we know whether a particular frame should or shouldn't have the > > 'environment' frame parameter? When the frame is created by the > > server on behalf of a client, we know. But for a random > > frame-creation function, how do we know? > > That's a tricky question. In my understanding, it makes sense in an > ancestor/child relationship: if the ancestor of FRAME has some distinct > set of environment variables, we copy them to the new frame. 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. But let's hear what others think about this. > To clarify all my assumptions, I understand that the `environment` > property exists because frames of the same daemon or server can appear > in very different environments, like multiple X or Wayland servers, > terminals, remote sessions, and so on. No, it's because starting a client frame is supposed to be similar to starting an Emacs from the same terminal.