From: naehring@iee.et.tu-dresden.de
Subject: buffer-local file variables
Date: Wed, 30 Jun 2004 08:12:09 +0200 [thread overview]
Message-ID: <16610.22969.62232.107317@gargle.gargle.HOWL> (raw)
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
next reply other threads:[~2004-06-30 6:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-30 6:12 naehring [this message]
[not found] <mailman.2744.1088576044.1953.bug-gnu-emacs@gnu.org>
2004-07-01 14:59 ` buffer-local file variables Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16610.22969.62232.107317@gargle.gargle.HOWL \
--to=naehring@iee.et.tu-dresden.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).