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 21:47:01 +0200 Message-ID: <877dl3ib4a.fsf@thb.lt> References: <87k0p39zbo.fsf@thb.lt> <838s5jxt55.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21517"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47806@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 15 21:48:42 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 1lX7yk-0005V4-Af for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 21:48:42 +0200 Original-Received: from localhost ([::1]:42110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX7yi-0003Zp-JQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 15 Apr 2021 15:48:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lX7y6-0003YO-P2 for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lX7y6-0006Kv-Fu for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lX7y6-0004Sx-Dx for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 15:48: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 19:48: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.161851603115789 (code B ref 47806); Thu, 15 Apr 2021 19:48:02 +0000 Original-Received: (at 47806) by debbugs.gnu.org; 15 Apr 2021 19:47:11 +0000 Original-Received: from localhost ([127.0.0.1]:39293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX7xG-00046M-VB for submit@debbugs.gnu.org; Thu, 15 Apr 2021 15:47:11 -0400 Original-Received: from 1.mo69.mail-out.ovh.net ([178.33.251.173]:33091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX7xE-00043L-KV for 47806@debbugs.gnu.org; Thu, 15 Apr 2021 15:47:10 -0400 Original-Received: from player762.ha.ovh.net (unknown [10.110.115.215]) by mo69.mail-out.ovh.net (Postfix) with ESMTP id CDCDFB5654 for <47806@debbugs.gnu.org>; Thu, 15 Apr 2021 21:47:06 +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 player762.ha.ovh.net (Postfix) with ESMTPSA id 91CF21D25B027; Thu, 15 Apr 2021 19:47:04 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-100R003deab95d1-b974-4494-a81a-fc8f4991014c, 8127DD0FE29B0B358ABE5681D102921DC21EF8EB) smtp.auth=thibault@thb.lt X-OVh-ClientIp: 86.252.240.78 In-Reply-To: <838s5jxt55.fsf@gnu.org> X-Ovh-Tracer-Id: 10969079845033658803 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduledrudelfedgudegiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefvhhhisggruhhlthcurfholhhgvgcuoehthhhisggruhhlthesthhhsgdrlhhtqeenucggtffrrghtthgvrhhnpeefudduvddvudduuddvvdejfefhlefguedtvdfgjefhgeetieehhfeigfevffdvffenucfkpheptddrtddrtddrtddpkeeirddvhedvrddvgedtrdejkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhejiedvrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepthhhihgsrghulhhtsehthhgsrdhlthdprhgtphhtthhopeegjeektdeiseguvggssghughhsrdhgnhhurdhorhhg 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:204097 Archived-At: > 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`). > 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. I'm not too clear on the various execution contexts of Emacs Lisp, but couldn't something similar to: (when (called-interactively-p) ; I assume this implies there's a frame ; this is being called "from". (set-frame-property TARGET 'environment (frame-property SOURCE 'environment'))) 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. If my understanding is correct, it makes sense that further frames share these values, even when not created directly from `emacsclient`. Best regards, Thibault