aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-07-23 15:24:00 +0000
committerEli Zaretskii2001-07-23 15:24:00 +0000
commit31fac3b80fa13ca1000619ab9397198551ba092d (patch)
treea3e6dc96a1f29b8c0e31bff5ff485e53566fb4e9
parentf1004faf26f399e86f2000ef7702f4142de0a64b (diff)
downloademacs-31fac3b80fa13ca1000619ab9397198551ba092d.tar.gz
emacs-31fac3b80fa13ca1000619ab9397198551ba092d.zip
(compile-internal): If EMACS is already
defined in the environment, don't override its value.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/compile.el6
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 576505db8d8..1bd3dab563b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12001-07-23 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * progmodes/compile.el (compile-internal): If EMACS is already
4 defined in the environment, don't override its value.
5
12001-07-23 Gerd Moellmann <gerd@gnu.org> 62001-07-23 Gerd Moellmann <gerd@gnu.org>
2 7
3 * play/fortune.el: Undo change of 2001-07-13. 8 * play/fortune.el: Undo change of 2001-07-13.
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index cc899ba20a6..0e9f6f715a4 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -805,7 +805,11 @@ Returns the compilation buffer created."
805 (funcall compilation-process-setup-function)) 805 (funcall compilation-process-setup-function))
806 ;; Start the compilation. 806 ;; Start the compilation.
807 (if (fboundp 'start-process) 807 (if (fboundp 'start-process)
808 (let* ((process-environment (cons "EMACS=t" process-environment)) 808 (let* ((process-environment
809 ;; Don't override users' setting of $EMACS.
810 (if (getenv "EMACS")
811 process-environment
812 (cons "EMACS=t" process-environment)))
809 (proc (start-process-shell-command (downcase mode-name) 813 (proc (start-process-shell-command (downcase mode-name)
810 outbuf 814 outbuf
811 command))) 815 command)))