From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thibault Polge 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 20:28:59 +0200 Message-ID: <87k0p39zbo.fsf@thb.lt> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38916"; mail-complaints-to="usenet@ciao.gmane.io" To: 47806@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 15 20:30: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 1lX6lO-0009zU-Ng for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 20:30:50 +0200 Original-Received: from localhost ([::1]:54228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX6lN-00049L-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 14:30:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX6kd-0003xx-7U for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 14:30:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX6kc-0003iH-VF for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 14:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX6kc-0000Na-Qj for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 14:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thibault Polge Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47806 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16185113541357 (code B ref -1); Thu, 15 Apr 2021 18:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Apr 2021 18:29:14 +0000 Original-Received: from localhost ([127.0.0.1]:39168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX6jp-0000Lo-6e for submit@debbugs.gnu.org; Thu, 15 Apr 2021 14:29:14 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX6jn-0000Lg-Fg for submit@debbugs.gnu.org; Thu, 15 Apr 2021 14:29:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX6jn-0003hR-6b for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 14:29:11 -0400 Original-Received: from 4.mo3.mail-out.ovh.net ([178.33.46.10]:33289) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX6jk-0003Gl-CP for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 14:29:10 -0400 Original-Received: from player798.ha.ovh.net (unknown [10.108.20.204]) by mo3.mail-out.ovh.net (Postfix) with ESMTP id 19035285850 for ; Thu, 15 Apr 2021 20:29:02 +0200 (CEST) Original-Received: from thb.lt (lfbn-idf3-1-671-78.w86-252.abo.wanadoo.fr [86.252.240.78]) (Authenticated sender: thibault@thb.lt) by player798.ha.ovh.net (Postfix) with ESMTPSA id 6C1771D3D887D for ; Thu, 15 Apr 2021 18:29:02 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-105G00653afe0c4-7495-49d7-a23e-37d811962108, 8127DD0FE29B0B358ABE5681D102921DC21EF8EB) smtp.auth=thibault@thb.lt X-OVh-ClientIp: 86.252.240.78 X-Ovh-Tracer-Id: 9650651051786488075 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrudelfedgudeftdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkfggtgesthdtredttddttdenucfhrhhomhepvfhhihgsrghulhhtucfrohhlghgvuceothhhihgsrghulhhtsehthhgsrdhltheqnecuggftrfgrthhtvghrnhepieekgfeuvdehkeegjefgffekiefgffekhfetvdejjedvhfejueetleehvedvhfeunecukfhppedtrddtrddtrddtpdekiedrvdehvddrvdegtddrjeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpqdhouhhtpdhhvghlohepphhlrgihvghrjeelkedrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehthhhisggruhhlthesthhhsgdrlhhtpdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh Received-SPF: pass client-ip=178.33.46.10; envelope-from=thibault@thb.lt; helo=4.mo3.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:204090 Archived-At: Hello, 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. 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. FWIW, I'm running Emacs from revision 738266240dc1a19911770bf676330aa72352da79 (from April 6th) built with the Lucid toolkit. Best regards, Thibault