diff options
| author | Richard M. Stallman | 1994-01-06 04:33:55 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-06 04:33:55 +0000 |
| commit | 35f7e85bdaaa49295d8042c64886511a341bc552 (patch) | |
| tree | 6b9eac25f289b92510a1073e5d3146406d208449 | |
| parent | 8afc29f0bc9e31dd056d458b96da9cada1427d13 (diff) | |
| download | emacs-35f7e85bdaaa49295d8042c64886511a341bc552.tar.gz emacs-35f7e85bdaaa49295d8042c64886511a341bc552.zip | |
(compile-internal): Extended to work without asynchronous subprocesses.
| -rw-r--r-- | lisp/progmodes/compile.el | 21 |
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 | ||