[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Buffer-local process environments
From: |
Stephen Leake |
Subject: |
Re: [PATCH] Buffer-local process environments |
Date: |
Wed, 01 Sep 2021 03:42:21 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) |
Augusto Stoffel <arstoffel@gmail.com> writes:
> Many languages and build tools rely on environment variables, so those
> variables are not global, but rather local to a project. In Python, for
> instance, the standard way to choose a particular version of the
> interpreter and of various packages is by setting the PATH and perhaps
> PYTHONPATH variables. It's a dumb and simple system, which has its
> advantages.
Ada has a similar situation; GPR_PROJECT_PATH specifies the path to
search for dependent libraries, and is per-project.
> If you are working on two projects with different requirements, you need
> to either launch an Emacs instance for each project, which is the
> pedestrian option, or have buffer-local environment variables.
The GNU ELPA package wisi takes an intermediate approach; it maintains a
list of project-specific environment variables in the project object,
and let-binds them in process-environment whenever it runs a process for
the project.
--
-- Stephe
- Re: [PATCH] Buffer-local process environments,
Stephen Leake <=