changeset 8810:6ca3e0d3b7ca

(compile-internal): Set EMACS=t in process-environment.
author Richard M. Stallman <rms@gnu.org>
date Fri, 16 Sep 1994 23:54:06 +0000
parents 5809c1ce795d
children 7cd89ebbe641
files lisp/progmodes/compile.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/compile.el	Fri Sep 16 23:41:47 1994 +0000
+++ b/lisp/progmodes/compile.el	Fri Sep 16 23:54:06 1994 +0000
@@ -383,9 +383,10 @@
 	(compilation-set-window-height outwin)
 	;; Start the compilation.
 	(if (fboundp 'start-process)
-	    (let ((proc (start-process-shell-command (downcase mode-name)
-						     outbuf
-						     command)))
+	    (let* ((process-environment (cons "EMACS=t" process-environment))
+		   (proc (start-process-shell-command (downcase mode-name)
+						      outbuf
+						      command)))
 	      (set-process-sentinel proc 'compilation-sentinel)
 	      (set-process-filter proc 'compilation-filter)
 	      (set-marker (process-mark proc) (point) outbuf)