emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Buffer-local process environments


From: Eli Zaretskii
Subject: Re: [PATCH] Buffer-local process environments
Date: Sat, 28 Aug 2021 15:37:04 +0300

> From: Augusto Stoffel <arstoffel@gmail.com>
> Date: Sat, 28 Aug 2021 14:28:59 +0200
> 
> Specifically, whenever `compile' is called from a buffer where
> `process-environment' is local, the *compilation* buffer inherits the
> original buffer's `process-environment' and `exec-path'.  When
> `process-environment' is not local in the buffer from which `compile'
> is called, any local values of those two variables are killed in the
> *compilation* buffer as well.  (There's no check for buffer-localness
> of `exec-path' because it's usually misguided to keep it out of sync
> with PATH.)

Thanks.  The patch should be accompanied by a suitable documentation
change, of course.

And I'm not sure I understand the rationale, and you didn't describe
it.  Environment variables and PATH in particular are generally global
on the entire system, so what does this feature correspond to?
separate environment variables in each shell window?  Why would anyone
want to do that?  And why should we make it easier by providing
buffer-local values of those, instead of letting each Lisp program
that needs it let-bind the variables instead?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]