[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: specifying coding system on the first/second line
From: |
Radomir Hejl |
Subject: |
Re: specifying coding system on the first/second line |
Date: |
Tue, 11 Oct 2005 21:49:20 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) |
Reiner Steib <reinersteib+from-uce@imap.cc> writes:
>
> ,----[ (info "(emacs)File Variables") ]
> | In shell scripts, the first line is used to identify the script
> | interpreter, so you cannot put any local variables there. To
> | accommodate for this, when Emacs visits a shell script, it looks for
> | local variable specifications in the _second_ line.
> |
> | A "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 `Local
> | Variables:', and ends with a line containing the string `End:'. In
> | between come the variable names and values, one set per line, as
> | `VARIABLE: VALUE'. The VALUEs are not evaluated; they are used
> | literally. If a file has both a local variables list and a `-*-' line,
> | Emacs processes _everything_ in the `-*-' line first, and _everything_
> | in the local variables list afterward.
> |
> | Here is an example of a local variables list: [...]
> `----
>
Thanks, a "local variables list" works. I expected a '-*-' construct on the
second line will work too.
--
Radek