GNU bug report logs - #50607
28.0.50; 'M-x compile' misbehaves if 'process-environment' is buffer-local

Previous Next

Package: emacs;

Reported by: Augusto Stoffel <arstoffel <at> gmail.com>

Date: Wed, 15 Sep 2021 18:09:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Augusto Stoffel <arstoffel <at> gmail.com>
To: 50607 <at> debbugs.gnu.org
Subject: bug#50607: 28.0.50; 'M-x compile' misbehaves if 'process-environment' is buffer-local
Date: Wed, 15 Sep 2021 20:08:07 +0200
[Message part 1 (text/plain, inline)]
This has already been discussed on email-devel but didn't come to a
conclusion.  I don't want to linger on it, but I would like the problem
to get assigned a bug number, so it has a chance of being addressed in
the future.

A summary of the problem: suppose buffer A has a buffer-local value of
'process-environment' containing an extra directory in the PATH, and
that a given 'program' is only available on that directory.  Then 'M-x
compile RET program RET' will not find 'program', because the
*compilation* buffer will not "inherit" the PATH from A.

For the reasons why one would want/need such a setup, see
https://lists.gnu.org/archive/html/emacs-devel/2021-08/msg01380.html
and other messages in that thread.

Finally, I attach my proposed patch.

[0001-Make-compile-respect-buffer-local-process-environmen.patch (text/x-patch, attachment)]

This bug report was last modified 3 years and 243 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.