[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Buffer-local process environments
From: |
Michael Albinus |
Subject: |
Re: Buffer-local process environments |
Date: |
Fri, 30 Apr 2021 17:55:01 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Augusto Stoffel <arstoffel@gmail.com> writes:
>> 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.)
Sure. But reality is, that a lot of packages are written w/o any care of
Tramp. People call remote processes w/o any care of such
environment. They simply expect that Tramp works (and bash me otherwise :-)
Best regards, Michael.
- Re: Buffer-local process environments, (continued)
Re: Buffer-local process environments, Stefan Monnier, 2021/04/29
- Re: Buffer-local process environments, Augusto Stoffel, 2021/04/29
- Re: Buffer-local process environments, Michael Albinus, 2021/04/29
- Re: Buffer-local process environments, Augusto Stoffel, 2021/04/30
- Re: Buffer-local process environments, Michael Albinus, 2021/04/30
- Re: Buffer-local process environments, Augusto Stoffel, 2021/04/30
- Re: Buffer-local process environments, Michael Albinus, 2021/04/30
- Re: Buffer-local process environments, Augusto Stoffel, 2021/04/30
- Re: Buffer-local process environments,
Michael Albinus <=
Re: Buffer-local process environments, Michael Albinus, 2021/04/29