From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.help Subject: Re: specifying coding system on the first/second line Date: Tue, 11 Oct 2005 19:28:13 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129051886 8229 80.91.229.2 (11 Oct 2005 17:31:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2005 17:31:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 19:31:26 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EPNxc-0006uy-P1 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2005 19:30:45 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EPNxc-00089m-5r for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Oct 2005 13:30:44 -0400 Original-Newsgroups: gnu.emacs.help X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T; w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv, vbL^XF1nIp\:F=$Ei2o&mEe:%N~, :3]vtQ~s9u$9izmX$IF@VgGl7/, ^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:OGZ43jQwqwAHtyWt8KmzSzyS2Ec= Original-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1129051807 134.60.10.123 (11 Oct 2005 19:30:07 +0200) Original-Lines: 38 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!newsread.com!newsprint.newsread.com!newsfeed.stueberl.de!news.bawue.net!news.belwue.de!news.uni-ulm.de!bridgekeeper.physik.uni-ulm.de!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:134562 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30142 Archived-At: On Tue, Oct 11 2005, Radomir Hejl wrote: > On the second line of my file I have the following text: > # -*- coding: utf-8;-*- > The first line is an interpreter command. [...] > What should I fix to remedy this? ,----[ (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: [...] `---- Example: # Local Variables: # coding: utf-8 # End: Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/