aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-08-20 12:14:24 +0000
committerEli Zaretskii2005-08-20 12:14:24 +0000
commit3fa37cd13c371726db2a72b5ceec08fcd75aa45e (patch)
tree1c4920374b0f8eaeae15e1e1e76b19a4c13e6e22
parent7bc7ab5a68f8da1d10cf72293d47f870d607742a (diff)
downloademacs-3fa37cd13c371726db2a72b5ceec08fcd75aa45e.tar.gz
emacs-3fa37cd13c371726db2a72b5ceec08fcd75aa45e.zip
(compilation-disable-input): New defcustom.
(compilation-start): If compilation-disable-input is non-nil, send EOF to the compilation process.
-rw-r--r--lisp/progmodes/compile.el10
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.
451This only affects platforms that support asynchronous processes (see
452start-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)