]> git.eshelyaron.com Git - emacs.git/commitdiff
Docment that `eval' can be used with local variables in the first
authorEli Zaretskii <eliz@gnu.org>
Sat, 2 Dec 2000 15:26:21 +0000 (15:26 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 2 Dec 2000 15:26:21 +0000 (15:26 +0000)
line.  Tell that in shell scripts the second line is used for
local variables.

man/custom.texi

index a09a18c684742ea869b2dfb48b6a8d312ec137af..a8775bc0a9af9b90b471297f101640d8f79a7787 100644 (file)
@@ -888,6 +888,15 @@ specify a value for the ``variable'' named @code{coding}.  The ``value''
 must be a coding system name that Emacs recognizes.  @xref{Coding
 Systems}.
 
+  The @code{eval} pseudo-variable, described below, can be specified in
+the first line as well.
+
+@cindex shell scripts, and local file variables
+  In shell scripts, the first line is used to identify the script
+interpreter, so you cannot put any local variables there.  To accomodate
+for this, when Emacs visits a shell script, it looks for local variable
+specifications in the @emph{second} line.
+
   A @dfn{local variables list} goes near the end of the file, in the
 last page.  (It is often best to put it on a page by itself.)  The local
 variables list starts with a line containing the string @samp{Local