diff options
| author | Richard M. Stallman | 2004-12-03 11:30:11 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-03 11:30:11 +0000 |
| commit | 4e4b7d76d13bcf88958964be7ca722130b086cd0 (patch) | |
| tree | b62c7b8552be209ee8bb3f1d808f9a4715cbc7fc | |
| parent | f6101ac9afdd509b502dcfab369ad61eba37287d (diff) | |
| download | emacs-4e4b7d76d13bcf88958964be7ca722130b086cd0.tar.gz emacs-4e4b7d76d13bcf88958964be7ca722130b086cd0.zip | |
(Initial Options): Clarify batch mode i/o.
| -rw-r--r-- | man/cmdargs.texi | 23 |
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 |
| 207 | Run Emacs in @dfn{batch mode}, which means that the text being edited is | 207 | Run Emacs in @dfn{batch mode}. Batch mode is used for running |
| 208 | not displayed and the standard terminal interrupt characters such as | 208 | programs 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 | 209 | on. You should also use the @samp{-l} option or @samp{-f} option, to |
| 210 | batch mode outputs to @code{stderr} only what would normally be displayed | 210 | invoke a Lisp program to do batch processing. |
| 211 | in the echo area under program control, and functions which would | 211 | |
| 212 | normally read from the minibuffer take their input from @code{stdin}. | 212 | In batch mode, Emacs does not display the text being edited, and the |
| 213 | 213 | standard terminal interrupt characters such as @kbd{C-z} and @kbd{C-c} | |
| 214 | Batch mode is used for running programs written in Emacs Lisp from | 214 | continue to have their normal effect. The functions @code{prin1}, |
| 215 | shell scripts, makefiles, and so on. Normally the @samp{-l} option | 215 | @code{princ} and @code{print} output to @code{stdout} instead of the |
| 216 | or @samp{-f} option will be used as well, to invoke a Lisp program | 216 | echo area, while @code{message} and error messages output to |
| 217 | to do the batch processing. | 217 | @code{stderr}. Functions that would normally read from the minibuffer |
| 218 | take 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 |
| 220 | causes Emacs to exit after processing all the command options. In | 221 | causes Emacs to exit after processing all the command options. In |