aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters2002-09-07 21:29:44 +0000
committerColin Walters2002-09-07 21:29:44 +0000
commit23b0c5fcb21bbaccc64034f62b4f69cf19a4aa1c (patch)
treed818c8ca00f7ae5cf010e99fb6ad02dc2a759bf8
parent5488b9fcd3b1627598c3fcdb5c7080a924b84ea4 (diff)
downloademacs-23b0c5fcb21bbaccc64034f62b4f69cf19a4aa1c.tar.gz
emacs-23b0c5fcb21bbaccc64034f62b4f69cf19a4aa1c.zip
(compile-internal): Add optional argument no-async.
-rw-r--r--lisp/progmodes/compile.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index b0f2457df66..8ef974b5b1f 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -956,7 +956,8 @@ Otherwise, construct a buffer name from MODE-NAME."
956 &optional name-of-mode parser 956 &optional name-of-mode parser
957 error-regexp-alist name-function 957 error-regexp-alist name-function
958 enter-regexp-alist leave-regexp-alist 958 enter-regexp-alist leave-regexp-alist
959 file-regexp-alist nomessage-regexp-alist) 959 file-regexp-alist nomessage-regexp-alist
960 no-async)
960 "Run compilation command COMMAND (low level interface). 961 "Run compilation command COMMAND (low level interface).
961ERROR-MESSAGE is a string to print if the user asks to see another error 962ERROR-MESSAGE is a string to print if the user asks to see another error
962and there are no more errors. The rest of the arguments, 3-10 are optional. 963and there are no more errors. The rest of the arguments, 3-10 are optional.
@@ -975,7 +976,11 @@ NOMESSAGE-REGEXP-ALIST is the nomessage regexp alist to use.
975\ and `compilation-nomessage-regexp-alist', respectively. 976\ and `compilation-nomessage-regexp-alist', respectively.
976For arg 7-10 a value `t' means an empty alist. 977For arg 7-10 a value `t' means an empty alist.
977 978
979If NO-ASYNC is non-nil, start the compilation process synchronously.
980
978Returns the compilation buffer created." 981Returns the compilation buffer created."
982 (unless no-async
983 (setq no-async (not (fboundp 'start-process))))
979 (let (outbuf) 984 (let (outbuf)
980 (save-excursion 985 (save-excursion
981 (or name-of-mode 986 (or name-of-mode
@@ -1068,7 +1073,7 @@ Returns the compilation buffer created."
1068 (if compilation-process-setup-function 1073 (if compilation-process-setup-function
1069 (funcall compilation-process-setup-function)) 1074 (funcall compilation-process-setup-function))
1070 ;; Start the compilation. 1075 ;; Start the compilation.
1071 (if (fboundp 'start-process) 1076 (if (not no-async)
1072 (let* ((process-environment 1077 (let* ((process-environment
1073 (append 1078 (append
1074 (if (and (boundp 'system-uses-terminfo) 1079 (if (and (boundp 'system-uses-terminfo)