# HG changeset patch # User Richard M. Stallman # Date 1102073411 0 # Node ID 0cb8dbb527b9f685dbe7d91ca964abcffc0e9ae5 # Parent 127015d5535663c1084f3b2a082a012f6b18e745 (Initial Options): Clarify batch mode i/o. diff -r 127015d55356 -r 0cb8dbb527b9 man/cmdargs.texi --- a/man/cmdargs.texi Fri Dec 03 11:28:08 2004 +0000 +++ b/man/cmdargs.texi Fri Dec 03 11:30:11 2004 +0000 @@ -204,17 +204,18 @@ @item -batch @opindex --batch @itemx --batch -Run Emacs in @dfn{batch mode}, which means that the text being edited is -not displayed and the standard terminal interrupt characters such as -@kbd{C-z} and @kbd{C-c} continue to have their normal effect. Emacs in -batch mode outputs to @code{stderr} only what would normally be displayed -in the echo area under program control, and functions which would -normally read from the minibuffer take their input from @code{stdin}. +Run Emacs in @dfn{batch mode}. Batch mode is used for running +programs written in Emacs Lisp from shell scripts, makefiles, and so +on. You should also use the @samp{-l} option or @samp{-f} option, to +invoke a Lisp program to do batch processing. -Batch mode is used for running programs written in Emacs Lisp from -shell scripts, makefiles, and so on. Normally the @samp{-l} option -or @samp{-f} option will be used as well, to invoke a Lisp program -to do the batch processing. +In batch mode, Emacs does not display the text being edited, and the +standard terminal interrupt characters such as @kbd{C-z} and @kbd{C-c} +continue to have their normal effect. The functions @code{prin1}, +@code{princ} and @code{print} output to @code{stdout} instead of the +echo area, while @code{message} and error messages output to +@code{stderr}. Functions that would normally read from the minibuffer +take their input from @code{stdin} instead. @samp{--batch} implies @samp{-q} (do not load an init file). It also causes Emacs to exit after processing all the command options. In