aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/compile.el21
1 files changed, 14 insertions, 7 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 5151ca9f710..9598c10914a 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -349,13 +349,20 @@ Returns the compilation buffer created."
349 (window-height)))) 349 (window-height))))
350 (select-window w)))) 350 (select-window w))))
351 ;; Start the compilation. 351 ;; Start the compilation.
352 (let ((proc (start-process-shell-command (downcase mode-name) 352 (if (fboundp 'start-process)
353 outbuf 353 (let ((proc (start-process-shell-command (downcase mode-name)
354 command))) 354 outbuf
355 (set-process-sentinel proc 'compilation-sentinel) 355 command)))
356 (set-process-filter proc 'compilation-filter) 356 (set-process-sentinel proc 'compilation-sentinel)
357 (set-marker (process-mark proc) (point) outbuf) 357 (set-process-filter proc 'compilation-filter)
358 (setq compilation-in-progress (cons proc compilation-in-progress))))) 358 (set-marker (process-mark proc) (point) outbuf)
359 (setq compilation-in-progress
360 (cons proc compilation-in-progress)))
361 ;; No asynchronous processes available
362 (message (format "Executing `%s'..." command))
363 (let ((status (call-process shell-file-name nil outbuf nil "-c"
364 command))))
365 (message (format "Executing `%s'...done" command)))))
359 ;; Make it so the next C-x ` will use this buffer. 366 ;; Make it so the next C-x ` will use this buffer.
360 (setq compilation-last-buffer outbuf))) 367 (setq compilation-last-buffer outbuf)))
361 368