aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-12-03 11:30:11 +0000
committerRichard M. Stallman2004-12-03 11:30:11 +0000
commit4e4b7d76d13bcf88958964be7ca722130b086cd0 (patch)
treeb62c7b8552be209ee8bb3f1d808f9a4715cbc7fc
parentf6101ac9afdd509b502dcfab369ad61eba37287d (diff)
downloademacs-4e4b7d76d13bcf88958964be7ca722130b086cd0.tar.gz
emacs-4e4b7d76d13bcf88958964be7ca722130b086cd0.zip
(Initial Options): Clarify batch mode i/o.
-rw-r--r--man/cmdargs.texi23
1 files changed, 12 insertions, 11 deletions
diff --git a/man/cmdargs.texi b/man/cmdargs.texi
index 7548431aa4c..2a61985da90 100644
--- a/man/cmdargs.texi
+++ b/man/cmdargs.texi
@@ -204,17 +204,18 @@ and input.
204@item -batch 204@item -batch
205@opindex --batch 205@opindex --batch
206@itemx --batch 206@itemx --batch
207Run Emacs in @dfn{batch mode}, which means that the text being edited is 207Run Emacs in @dfn{batch mode}. Batch mode is used for running
208not displayed and the standard terminal interrupt characters such as 208programs written in Emacs Lisp from shell scripts, makefiles, and so
209@kbd{C-z} and @kbd{C-c} continue to have their normal effect. Emacs in 209on. You should also use the @samp{-l} option or @samp{-f} option, to
210batch mode outputs to @code{stderr} only what would normally be displayed 210invoke a Lisp program to do batch processing.
211in the echo area under program control, and functions which would 211
212normally read from the minibuffer take their input from @code{stdin}. 212In batch mode, Emacs does not display the text being edited, and the
213 213standard terminal interrupt characters such as @kbd{C-z} and @kbd{C-c}
214Batch mode is used for running programs written in Emacs Lisp from 214continue to have their normal effect. The functions @code{prin1},
215shell scripts, makefiles, and so on. Normally the @samp{-l} option 215@code{princ} and @code{print} output to @code{stdout} instead of the
216or @samp{-f} option will be used as well, to invoke a Lisp program 216echo area, while @code{message} and error messages output to
217to do the batch processing. 217@code{stderr}. Functions that would normally read from the minibuffer
218take their input from @code{stdin} instead.
218 219
219@samp{--batch} implies @samp{-q} (do not load an init file). It also 220@samp{--batch} implies @samp{-q} (do not load an init file). It also
220causes Emacs to exit after processing all the command options. In 221causes Emacs to exit after processing all the command options. In