[Top][All Lists]

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

Problem with Eshell and grep.

From: Matt Hodges
Subject: Problem with Eshell and grep.
Date: Wed, 13 Oct 2004 11:25:01 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

In GNU Emacs (i686-pc-linux-gnu, GTK+ Version 2.4.10)
 of 2004-10-11 on dugong
configured using `configure '--with-gtk''

After starting Eshell, M-x grep modifies the global value of
process-environment if called from an Eshell buffer, initially
prepending "GREP_COLOR=01;41" and "GREP_OPTIONS= --color=always", and
adding another " --color=always" to GREP_OPTIONS for each subsequent
call to grep. (To reproduce this, it is sufficient to eval
(make-local-variable 'process-environment) and then M-x grep from the
same buffer.)

The interaction between compilation-start and grep-process-setup
doesn't take into account that process-environment may be buffer
local. The current buffer changes between compilation-start and
grep-process-setup, and the global binding of process-environment gets
modified in the latter function.

Also, the binding of compilation-process-setup-function in eshell-grep
may now be obsolete.



reply via email to

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