From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.help Subject: Re: Local variables not being defined Date: Thu, 25 Jan 2007 23:22:54 +0100 Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169764846 23388 80.91.229.12 (25 Jan 2007 22:40:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 25 Jan 2007 22:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 25 23:40:39 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HADGn-0000YY-Ui for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jan 2007 23:40:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HADGn-0003WC-F2 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jan 2007 17:40:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!npeer.de.kpn-eurorings.net!uio.no!ntnu.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: fiinbeck.math.ntnu.no Original-X-Trace: orkan.itea.ntnu.no 1169763614 30259 129.241.15.140 (25 Jan 2007 22:20:14 GMT) Original-X-Complaints-To: usenet@itea.ntnu.no Original-NNTP-Posting-Date: Thu, 25 Jan 2007 22:20:14 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (berkeley-unix) Cancel-Lock: sha1:GrpCd2Vo4A/Zfyqr/wiOyqfAtaQ= Original-Xref: shelby.stanford.edu gnu.emacs.help:145054 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:40657 Archived-At: + ken : | On 01/25/2007 03:25 PM somebody named Harald Hanche-Olsen wrote: |> + ken : |> |> | File local-variables error: (error "Local variables entry is missing the |> | prefix") |> | |> | So what does this error message mean and/or what should I do about it? |> |> See the info file about file variables: Every line of the Variables |> section must have the exact same prefix, which may be empty. This |> appears to be the case with your example. Or did some lines have |> initial spaces or tabs that your news posting software suppressed? |> If so, get rid of them. |> | | That can't be the problem You asked what the error message means, and that is what it means. | as the "prefix" is and has always been the same for all lines-- | nothing at all. I.e., all lines start to the far left... in the | very first column. Then what happens shouldn't happen, and I am left powerless to suggest other explanations. | Again: Yup, I saw that the first time. (I suggested leading white space because I have often seen news posting software suppressing white space, and then I wouldn't see it obviously. I'll take your word for it not being there.) And it works for me: I copied your local variables section verbatim to an HTML file, saved, closed the buffer and reloaded, and the variables get the prescribed values, no problem. I am looking at the code now (the function in question is called hack-local-variables, and it is found in files.el), and there should be no way you are going to see that message unless there is something in front of the string "Local Variables:" on the line. Oh, wait, one more wild guess. hack-local-variables goes 3000 characters back from the end of the file and searches forward for "Local Variables:". Don't tell me your HTML file contains another instance of that phrase? -- * Harald Hanche-Olsen - It is undesirable to believe a proposition when there is no ground whatsoever for supposing it is true. -- Bertrand Russell