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#62528: 28.2; Emacsclient doesn't use COLORTERM Date: Thu, 30 Mar 2023 12:34:39 +0300 Message-ID: <83h6u260r4.fsf@gnu.org> References: <998d09cc-292e-4c14-a14c-2d1ad0e3ab34@betaapp.fastmail.com> <837cuz79sy.fsf@gnu.org> <834jq375sj.fsf@gnu.org> <87wn2ylimj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: vojtech@balak.me, 62528@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 30 11:35:11 2023 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 1phogW-0009PF-US for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Mar 2023 11:35:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phogR-0000Vt-Se; Thu, 30 Mar 2023 05:35:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phogQ-0000Vk-NC for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phogQ-0001sx-7E for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phogP-0003rQ-IS for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2023 05:35:01 -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, 30 Mar 2023 09:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62528 X-GNU-PR-Package: emacs Original-Received: via spool by 62528-submit@debbugs.gnu.org id=B62528.168016887714799 (code B ref 62528); Thu, 30 Mar 2023 09:35:01 +0000 Original-Received: (at 62528) by debbugs.gnu.org; 30 Mar 2023 09:34:37 +0000 Original-Received: from localhost ([127.0.0.1]:55773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phog1-0003qb-84 for submit@debbugs.gnu.org; Thu, 30 Mar 2023 05:34:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phofz-0003qN-Ib for 62528@debbugs.gnu.org; Thu, 30 Mar 2023 05:34:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phofu-0001pt-6T; Thu, 30 Mar 2023 05:34:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=TBPnwIYzli8njBxrqzJGVI9FHt2MYNiPo0RF1s9TrK0=; b=PH3vD7GO14R5UYIPFOSJ dGrlWOUniyki5y7M/1qvfevgec7Xv3Pi0+fDEUxlO8tL29F454WYQOLsyJYUFhMEpsZIbustwyFmh 9rBjeYM0hJL4bQEaDYAW6xuIKvTArsZixmU5aRxM0vvSQ3SeCCCm07R0GAfhAUrrpLuDy12jWv8+w DlUSW1iin3f4Jj21c7vsOL7+1y/Mno23n7hFVKEWh7W3dnbxYo7+2RrWzVM86pug9xktMZ1TYXs3N YkXOsU22HHqjuzd0KAWnxh/TjaODIwuL5f2ABCbSvMv82TW8CHBjPvZnHPvvPmT9a18Mq8DC9QBMK O4/2mkY7SKOwvw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phoft-000106-FV; Thu, 30 Mar 2023 05:34:29 -0400 In-Reply-To: <87wn2ylimj.fsf@gmail.com> (message from Robert Pluim on Thu, 30 Mar 2023 10:59:32 +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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258912 Archived-At: > From: Robert Pluim > Cc: Vojtěch Balák , > 62528@debbugs.gnu.org > Date: Thu, 30 Mar 2023 10:59:32 +0200 > > >>>>> On Thu, 30 Mar 2023 09:49:56 +0200, Vojtěch Balák said: > > >> COLORTERM should be in the environment of emacs when it starts, not in > >> the environment of emacsclient. > > Thatʼs because we look it up using `getenv' in init_tty. If we used > `egetenv' instead, then we could honour the value of "COLORTERM" sent > by emacsclient. But egetenv would be wrong here, because it looks in process-environment. This is _exactly_ the issue here: emacsclient puts the environment of the parent shell into process-environment, so that it could be inherited by sub-processes, but Emacs itself should _not_ be sensitive to the environment it prepares for sub-processes.