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:08:38 +0300 Message-ID: <838s5jxt55.fsf@gnu.org> References: <87k0p39zbo.fsf@thb.lt> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13933"; 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:10:27 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 1lX7Nj-0003WA-KX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 21:10:27 +0200 Original-Received: from localhost ([::1]:49820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX7Ni-0008IZ-JW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 15:10:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34290) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX7NL-0008Ho-1x for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55930) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX7NK-0001Ap-NU for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX7NK-0001PG-Ih for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:10: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:10: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.16185137425327 (code B ref 47806); Thu, 15 Apr 2021 19:10:02 +0000 Original-Received: (at 47806) by debbugs.gnu.org; 15 Apr 2021 19:09:02 +0000 Original-Received: from localhost ([127.0.0.1]:39243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX7ML-0001Nn-SV for submit@debbugs.gnu.org; Thu, 15 Apr 2021 15:09:02 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX7MJ-0001NW-Si for 47806@debbugs.gnu.org; Thu, 15 Apr 2021 15:09:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42840) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX7MB-0000Ye-GV; Thu, 15 Apr 2021 15:08:52 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3862 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lX7M6-0008EP-SY; Thu, 15 Apr 2021 15:08:49 -0400 In-Reply-To: <87k0p39zbo.fsf@thb.lt> (message from Thibault Polge on Thu, 15 Apr 2021 20:28: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:204092 Archived-At: > From: Thibault Polge > Date: Thu, 15 Apr 2021 20:28:59 +0200 > > Frames created by `emacsclient` get a copy of the caller's environment > variables in the `environment` frame property. But frames created from > other frames (with C-x 5 2, `make-frame`, `make-frame-command`, and so > on) don't get a copy of those variables (they don't have an > `environment` frame parameter at all). I believe they should. 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? > My use case is talking to the WM, and without this parameter I believe > it's impossible to distinguish between, eg, frames managed by different > X servers on the same daemon. Doesn't the 'display' parameter fit the bill?