diff options
| -rw-r--r-- | lisp/progmodes/compile.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 253a420da2e..8fd261f04f5 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -446,6 +446,14 @@ You might also use mode hooks to specify it in certain modes, like this: | |||
| 446 | :type 'string | 446 | :type 'string |
| 447 | :group 'compilation) | 447 | :group 'compilation) |
| 448 | 448 | ||
| 449 | (defcustom compilation-disable-input t | ||
| 450 | "*If non-nil, send end-of-file as compilation process input. | ||
| 451 | This only affects platforms that support asynchronous processes (see | ||
| 452 | start-process); synchronous compilation processes never accept input." | ||
| 453 | :type 'boolean | ||
| 454 | :group 'compilation | ||
| 455 | :version "22.1") | ||
| 456 | |||
| 449 | ;; A weak per-compilation-buffer hash indexed by (FILENAME . DIRECTORY). Each | 457 | ;; A weak per-compilation-buffer hash indexed by (FILENAME . DIRECTORY). Each |
| 450 | ;; value is a FILE-STRUCTURE as described above, with the car eq to the hash | 458 | ;; value is a FILE-STRUCTURE as described above, with the car eq to the hash |
| 451 | ;; key. This holds the tree seen from root, for storing new nodes. | 459 | ;; key. This holds the tree seen from root, for storing new nodes. |
| @@ -1022,6 +1030,8 @@ Returns the compilation buffer created." | |||
| 1022 | outbuf command)))) | 1030 | outbuf command)))) |
| 1023 | ;; Make the buffer's mode line show process state. | 1031 | ;; Make the buffer's mode line show process state. |
| 1024 | (setq mode-line-process '(":%s")) | 1032 | (setq mode-line-process '(":%s")) |
| 1033 | (when compilation-disable-input | ||
| 1034 | (process-send-eof proc)) | ||
| 1025 | (set-process-sentinel proc 'compilation-sentinel) | 1035 | (set-process-sentinel proc 'compilation-sentinel) |
| 1026 | (set-process-filter proc 'compilation-filter) | 1036 | (set-process-filter proc 'compilation-filter) |
| 1027 | (set-marker (process-mark proc) (point) outbuf) | 1037 | (set-marker (process-mark proc) (point) outbuf) |