mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(compile-internal): Set EMACS=t in process-environment.
This commit is contained in:
parent
e00b4260d3
commit
2bb240a98c
1 changed files with 4 additions and 3 deletions
|
|
@ -383,9 +383,10 @@ Returns the compilation buffer created."
|
|||
(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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue