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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50607 in the body.
You can then email your comments to 50607 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50607; Package emacs. (Wed, 15 Sep 2021 18:09:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Augusto Stoffel <arstoffel <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 15 Sep 2021 18:09:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Augusto Stoffel <arstoffel <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 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)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50607; Package emacs. (Thu, 16 Sep 2021 14:08:02 GMT) Full text and rfc822 format available.

Message #8 received at 50607 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Augusto Stoffel <arstoffel <at> gmail.com>
Cc: 50607 <at> debbugs.gnu.org
Subject: Re: bug#50607: 28.0.50; 'M-x compile' misbehaves if
 'process-environment' is buffer-local
Date: Thu, 16 Sep 2021 16:06:52 +0200
Augusto Stoffel <arstoffel <at> gmail.com> writes:

> Finally, I attach my proposed patch.

Makes sense to me, so I've pushed this to Emacs 28 (with some minor
stylistic changes).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 28.1, send any further explanations to 50607 <at> debbugs.gnu.org and Augusto Stoffel <arstoffel <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 16 Sep 2021 14:08:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 15 Oct 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 193 days ago.

Previous Next


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