diff options
| author | Richard M. Stallman | 1994-09-16 23:54:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-16 23:54:06 +0000 |
| commit | 2bb240a98c8a15533f3bc7540e06eab93f7ea2eb (patch) | |
| tree | 3a4c31e06ca02604c462269c14ce9bbffee2f3cc | |
| parent | e00b4260d37d595b1be436dd1dd42e4a4cca8a92 (diff) | |
| download | emacs-2bb240a98c8a15533f3bc7540e06eab93f7ea2eb.tar.gz emacs-2bb240a98c8a15533f3bc7540e06eab93f7ea2eb.zip | |
(compile-internal): Set EMACS=t in process-environment.
| -rw-r--r-- | lisp/progmodes/compile.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 7e326e9b62a..c3c6b48f1c8 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -383,9 +383,10 @@ Returns the compilation buffer created." | |||
| 383 | (compilation-set-window-height outwin) | 383 | (compilation-set-window-height outwin) |
| 384 | ;; Start the compilation. | 384 | ;; Start the compilation. |
| 385 | (if (fboundp 'start-process) | 385 | (if (fboundp 'start-process) |
| 386 | (let ((proc (start-process-shell-command (downcase mode-name) | 386 | (let* ((process-environment (cons "EMACS=t" process-environment)) |
| 387 | outbuf | 387 | (proc (start-process-shell-command (downcase mode-name) |
| 388 | command))) | 388 | outbuf |
| 389 | command))) | ||
| 389 | (set-process-sentinel proc 'compilation-sentinel) | 390 | (set-process-sentinel proc 'compilation-sentinel) |
| 390 | (set-process-filter proc 'compilation-filter) | 391 | (set-process-filter proc 'compilation-filter) |
| 391 | (set-marker (process-mark proc) (point) outbuf) | 392 | (set-marker (process-mark proc) (point) outbuf) |