From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Environment variables for remote processes Date: Wed, 19 Nov 2014 19:31:28 +0100 Message-ID: <87389f3uv3.fsf@gmx.de> References: <030C5AEB-C009-4995-B153-6EECD44802C8@fb.com> <87y4rkhdt6.fsf@gmx.de> <87y4rf2jtx.fsf@gmx.de> <87r3x6eq8w.fsf@gmx.de> <87mw7rtnxg.fsf@gmx.de> <83a93rduz4.fsf@gnu.org> <87h9xxvf31.fsf_-_@gmx.de> <87mw7oe2y3.fsf@gmx.de> <87h9xwdvxx.fsf@gmx.de> <87egsz3vhc.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416421928 4896 80.91.229.3 (19 Nov 2014 18:32:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2014 18:32:08 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, dpittman@fb.com To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 19 19:32:01 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XrA2r-000181-EN for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 19:32:01 +0100 Original-Received: from localhost ([::1]:60127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrA2r-0007BL-3O for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 13:32:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrA2Z-0007BB-Vn for emacs-devel@gnu.org; Wed, 19 Nov 2014 13:31:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrA2U-0003Xz-2i for emacs-devel@gnu.org; Wed, 19 Nov 2014 13:31:43 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:61818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrA2T-0003Xl-Pf; Wed, 19 Nov 2014 13:31:38 -0500 Original-Received: from detlef.gmx.de ([79.195.19.73]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MCPhl-1XibSt0Qa1-009CLf; Wed, 19 Nov 2014 19:31:30 +0100 In-Reply-To: <87egsz3vhc.fsf@gmx.de> (Michael Albinus's message of "Wed, 19 Nov 2014 19:18:07 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Provags-ID: V03:K0:2XcfB4CoCa2niujwozg6OLYHb/FkIq3sdMLLTDwniMc+YexIAFW pIgeNCo9CBUTEYxqONf/Qz2qZR0PYj51GE5CkVLObtzKGbPPBqXuyyJUzfvH0hEOILeX2Ns RAJYlIVQI8dWNROA2SJrVcnYc/1bumVkvCBrIWjGC+koEpuSjxCOJyOibekn7QXGum4b5Mi T1sK/wdeb1VW41erSNRIw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177798 Archived-At: Michael Albinus writes: > I do not say that I completely oppose (I start to understand your > proposal), but this might break existing code. Nitpicking: there is no clean way to remove an environment variable, which might have been set remotely and which you do not want to have set while executing process-file. You can check, whether an environment variable exists on toplevel process-environment, and does not exist on the let-bound process-environment. Then you can call "unset ...". But how do you do it, when this variable does not exists in your toplevel process-environment? Best regards, Michael.