From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: Buffer-local process environments Date: Fri, 30 Apr 2021 17:32:07 +0200 Message-ID: <877dkjbxfs.fsf@gmail.com> References: <87eeets6jf.fsf@gmail.com> <8735v99f4i.fsf@gmail.com> <87y2d1xada.fsf@gmx.de> <877dkkcjrj.fsf@gmail.com> <87tunoyzzd.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4078"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: Stefan Monnier , emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 30 17:35:21 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lcVAn-0000xh-AI for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Apr 2021 17:35:21 +0200 Original-Received: from localhost ([::1]:44324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcVAm-0007yx-Bt for ged-emacs-devel@m.gmane-mx.org; Fri, 30 Apr 2021 11:35:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcV7m-0006zl-0F for emacs-devel@gnu.org; Fri, 30 Apr 2021 11:32:14 -0400 Original-Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:38509) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcV7j-0002f7-Iz for emacs-devel@gnu.org; Fri, 30 Apr 2021 11:32:13 -0400 Original-Received: by mail-ed1-x531.google.com with SMTP id n25so11015493edr.5 for ; Fri, 30 Apr 2021 08:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=iiTLYqrXmkMJv+DsmqeNAhrxHbtKjrzoBtUqdy6gRPI=; b=Nhyi5QCQnevURiL4PotM5OnCCauyjdSNAo5163981N/hxordFjW1uKZU7pzJILlNKt jytmju0/66Rs6752wJjwX26ZCyyckJqQrQbktvBqTpiAwb+lcZXLNWasUlAhYvzS524K 96+AzG2peUc1vVeHkv/ofRWvA66mQiSEC/t7nfWmpc8YtSbCz/n5LCRtPWUm/MjQ9+gx mUy06+WSG2cpWBBJaTELg2VTNHpATZBMFy1E1aUClWUSwMFCwnMUNCwA8CNUxJr/xXTT frYvKe3SEu73aTsEVAmXYIt2qvOSy4CRzRMUSl3Y1tauAXFcWbes7ttv+jiHqRVWVOn/ LFIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=iiTLYqrXmkMJv+DsmqeNAhrxHbtKjrzoBtUqdy6gRPI=; b=rvz3FW+jZVK55bG9kHcf2QjSwH42qWm+HQ/Ub+/fQMP1Yv6zOALj8SjgGuzoaEHquO vjAyos69Ul+3FxEPdEwVQtj+FIwOKHSKWr+pCmj5/TMMXGJistsOvw1H/l/ySMKIOZem ZFaZSgok5IPkdQ9ltJpucx0CzxdFMNicQKn/PvqMpnzympOSrt4abnn0iDwd/9vZmJAf V6+eYPKR4S0NomrHb0hgVati/hCpy9Om2pSuGwelrXFySOu6zzDJa98ahnpDJbBsoAkt puU+z489z8d/1Y6keXIilwPznxgiCV4pWgM0IsKxSXlqzMJwscvnbrhWComvcxUQ3fER 2DYg== X-Gm-Message-State: AOAM533VWimmx/XJnzdqPDIXWxNmwQRBJar9ocheJaP1hNXr4KHuwZDg KuYS0gsx+P8/nQeDeW3gOd/yMchLyWnd2w== X-Google-Smtp-Source: ABdhPJwD/OUy3eC9H+KVS4IttbRVXllccxIVaMVZjldMfoSvn08wOz/GE/O0bhZGhlmPM4mNTN/USA== X-Received: by 2002:a05:6402:40d5:: with SMTP id z21mr6835722edb.20.1619796729423; Fri, 30 Apr 2021 08:32:09 -0700 (PDT) Original-Received: from ars3 ([2a02:908:2211:8540::68a]) by smtp.gmail.com with ESMTPSA id n15sm2257237eje.118.2021.04.30.08.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Apr 2021 08:32:08 -0700 (PDT) In-Reply-To: <87tunoyzzd.fsf@gmx.de> (Michael Albinus's message of "Fri, 30 Apr 2021 09:48:38 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::531; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:268671 Archived-At: > Because there's a lot of functions out there, which work for the local > host, and should work also for remote hosts. See for example > vc-git-grep, which has > > (let ((default-directory dir) > (compilation-environment (cons "PAGER=" compilation-environment))) > > compilation-environment will be propagated to process-environment later > on. And the setting for PAGER is needed for both local and remote > instances of vc-git-grep. There's no special code in vc-git-grep for the > remote case. In fact, if one launches Emacs via `PAGER= emacs', then Tramp will stop setting PAGER on the remote as desired. (Well, it won't, because PAGER is in `tramp-remote-process-environment', but you see my point.)