From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30134: ehsell and process-environment variable Date: Tue, 16 Jan 2018 19:04:08 +0200 Message-ID: <83o9ltybuf.fsf@gnu.org> References: <83shb6xyha.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1516122196 25662 195.159.176.226 (16 Jan 2018 17:03:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Jan 2018 17:03:16 +0000 (UTC) Cc: 30134@debbugs.gnu.org To: SK Kim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 16 18:03:12 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebUdk-0006Nc-9J for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jan 2018 18:03:12 +0100 Original-Received: from localhost ([::1]:49451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebUfk-0006pl-4H for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Jan 2018 12:05:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebUfb-0006n7-WC for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 12:05:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebUfW-0004HN-9s for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 12:05:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51090) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ebUfW-0004HC-5j for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 12:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ebUfV-0006oO-QA for bug-gnu-emacs@gnu.org; Tue, 16 Jan 2018 12:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Jan 2018 17:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30134 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30134-submit@debbugs.gnu.org id=B30134.151612227126139 (code B ref 30134); Tue, 16 Jan 2018 17:05:01 +0000 Original-Received: (at 30134) by debbugs.gnu.org; 16 Jan 2018 17:04:31 +0000 Original-Received: from localhost ([127.0.0.1]:58987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebUf1-0006nX-7J for submit@debbugs.gnu.org; Tue, 16 Jan 2018 12:04:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:38578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ebUez-0006nJ-6v for 30134@debbugs.gnu.org; Tue, 16 Jan 2018 12:04:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ebUeo-0003hO-HQ for 30134@debbugs.gnu.org; Tue, 16 Jan 2018 12:04:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ebUeo-0003hK-Du; Tue, 16 Jan 2018 12:04:18 -0500 Original-Received: from [176.228.60.248] (port=1402 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ebUen-000526-S0; Tue, 16 Jan 2018 12:04:18 -0500 In-reply-to: (message from SK Kim on Tue, 16 Jan 2018 16:09:17 +0900) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142204 Archived-At: [Please keep the bug address on the CC list.] > From: SK Kim > Date: Tue, 16 Jan 2018 16:09:17 +0900 > > So that means, this result is natural in Emacs and package authors > should also avoid such a code. Is this right? Yes, I think so. > Maybe if I want to guarantee the code is working properly in any > buffers of Emacs, I should wrap the code with 'with-temp-buffer' as below. > > (with-temp-buffer > (let ((process-environment (cons "TEST=1234" process-environment))) > (make-term "test-term" "/bin/bash"))) Maybe. I will take another look in a couple of days.