[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 15:38:22 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) |
Augusto Stoffel <arstoffel@gmail.com> writes:
> On Wed, 1 Sep 2021 at 03:42, Stephen Leake <stephen_leake@stephe-leake.org>
> wrote:
>
>> Ada has a similar situation; GPR_PROJECT_PATH specifies the path to
>> search for dependent libraries, and is per-project.
>
> Great, so we have some more evidence that support for project-specific
> env vars is a relevant feature.
>
>> 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.
>
> If I understand correctly, this works only when launching the WisiToken
> program, am I correct?
No, any process. In ada-mode, that includes the compiler and the cross
reference tool.
Perhaps you meant using wisi requires using WisiToken to generate a
parser from a grammar; that's mostly true. There are some things you can
do with wisi that don't require a grammar, but the main focus is on
exploiting the parser.
--
-- Stephe