emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/man/cmdargs.texi


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/man/cmdargs.texi
Date: Mon, 09 Sep 2002 15:17:00 -0400

Index: emacs/man/cmdargs.texi
diff -c emacs/man/cmdargs.texi:1.67 emacs/man/cmdargs.texi:1.68
*** emacs/man/cmdargs.texi:1.67 Sun Jul 28 21:53:42 2002
--- emacs/man/cmdargs.texi      Mon Sep  9 15:17:00 2002
***************
*** 195,204 ****
  or @samp{-f} option will be used as well, to invoke a Lisp program
  to do the batch processing.
  
! @samp{-batch} implies @samp{-q} (do not load an init file).  It also
  causes Emacs to exit after processing all the command options.  In
  addition, it disables auto-saving except in buffers for which it has
  been explicitly requested.
  
  @item -q
  @opindex -q
--- 195,221 ----
  or @samp{-f} option will be used as well, to invoke a Lisp program
  to do the batch processing.
  
! @samp{--batch} implies @samp{-q} (do not load an init file).  It also
  causes Emacs to exit after processing all the command options.  In
  addition, it disables auto-saving except in buffers for which it has
  been explicitly requested.
+ 
+ @item --script @var{file}
+ @opindex --script
+ Run Emacs in batch mode, like @samp{--batch}, and then read and
+ execute the Lisp code in @var{file}.
+ 
+ The normal use of this option is in executable script files that run
+ Emacs.  They can start with this text on the first line
+ 
+ @example
+ #!/usr/bin/emacs --script
+ @end example
+ 
+ @noindent
+ which will invoke Emacs with @samp{--script} and supply the name of
+ the script file as @var{file}.  Emacs Lisp then treats @samp{#!}  as a
+ comment delimiter.
  
  @item -q
  @opindex -q




reply via email to

[Prev in Thread] Current Thread [Next in Thread]