From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: naehring@iee.et.tu-dresden.de Newsgroups: gmane.emacs.bugs Subject: buffer-local file variables Date: Wed, 30 Jun 2004 08:12:09 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16610.22969.62232.107317@gargle.gargle.HOWL> Reply-To: naehring@iee.et.tu-dresden.de NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1088575946 4541 80.91.224.253 (30 Jun 2004 06:12:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Jun 2004 06:12:26 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 30 08:12:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BfYKR-0000iE-00 for ; Wed, 30 Jun 2004 08:12:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfYM8-0000Iu-98 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jun 2004 02:14:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BfYM6-0000If-HY for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2004 02:14:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BfYM5-0000IT-MO for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2004 02:14:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BfYM5-0000IQ-JW for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2004 02:14:01 -0400 Original-Received: from [217.232.73.21] (helo=Knoppix) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BfYKI-0005Rm-Sh for bug-gnu-emacs@gnu.org; Wed, 30 Jun 2004 02:12:11 -0400 Original-Received: by Knoppix via sendmail from stdin id (Debian Smail3.2.0.115) Wed, 30 Jun 2004 08:12:09 +0200 (CEST) Original-To: bug-gnu-emacs@gnu.org X-Mailer: VM 7.18 under Emacs 21.3.1 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8310 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8310 If `enable-local-variables is set to `t then appearently a newly loaded text file is searched for the string "local variables:" from top to bottom. I would consider that as almost a bug. If the main text contains the string "local variables:" (which might be in a comment of some computer program) then emacs misinterprets this as the beginning of the in-file declaration of the buffer-local variables. This, almost certainly induces the error File local-variables error: (error "Local variables entry is missing the prefix") There are some cries for help about this error in the WWW. Maybe, those are due to this buggy behaviour. I think text files should be searched for "local variables:" from bottom up. Then, one can avoid the above error message by inserting an empty local-variables block at the end of the text file. The only problem left would be some variable setting containing the string "local variables:". But in most cases those settings can be done in the first line of the text file with the help of the -*-...-*- syntax. Don't know whether this behaviour is special to the Debian version of gnu emacs. Specs: GNU Emacs 21.3.1 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2004-04-07 on raven, modified by Debian Best regards, Tobias Naehring