aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-09-09 19:17:00 +0000
committerRichard M. Stallman2002-09-09 19:17:00 +0000
commit0a41ca77ba2cc8fe5f09c409852d35ad2353e857 (patch)
tree7cbabe6a1fd64cb7cf14b4782ebb27b778feb867
parent454473ea06fa67a5d4f8c9469f403bfa39706c54 (diff)
downloademacs-0a41ca77ba2cc8fe5f09c409852d35ad2353e857.tar.gz
emacs-0a41ca77ba2cc8fe5f09c409852d35ad2353e857.zip
Document --script.
-rw-r--r--man/cmdargs.texi19
1 files changed, 18 insertions, 1 deletions
diff --git a/man/cmdargs.texi b/man/cmdargs.texi
index d6580f66b46..964e943433d 100644
--- a/man/cmdargs.texi
+++ b/man/cmdargs.texi
@@ -195,11 +195,28 @@ shell scripts, makefiles, and so on. Normally the @samp{-l} option
195or @samp{-f} option will be used as well, to invoke a Lisp program 195or @samp{-f} option will be used as well, to invoke a Lisp program
196to do the batch processing. 196to do the batch processing.
197 197
198@samp{-batch} implies @samp{-q} (do not load an init file). It also 198@samp{--batch} implies @samp{-q} (do not load an init file). It also
199causes Emacs to exit after processing all the command options. In 199causes Emacs to exit after processing all the command options. In
200addition, it disables auto-saving except in buffers for which it has 200addition, it disables auto-saving except in buffers for which it has
201been explicitly requested. 201been explicitly requested.
202 202
203@item --script @var{file}
204@opindex --script
205Run Emacs in batch mode, like @samp{--batch}, and then read and
206execute the Lisp code in @var{file}.
207
208The normal use of this option is in executable script files that run
209Emacs. They can start with this text on the first line
210
211@example
212#!/usr/bin/emacs --script
213@end example
214
215@noindent
216which will invoke Emacs with @samp{--script} and supply the name of
217the script file as @var{file}. Emacs Lisp then treats @samp{#!} as a
218comment delimiter.
219
203@item -q 220@item -q
204@opindex -q 221@opindex -q
205@itemx --no-init-file 222@itemx --no-init-file