Discussion:
Local variables
(too old to reply)
Dieter Britz
2015-10-08 09:12:22 UTC
Permalink
In one file, a chapter out of many, when I enter emacs I get
this message on the bottom half of a split screen:

The local variable list in chap07.tex contains values
that may not be safe (*).

I then get a choice of responses. I choose "y". At the bottom
of the file I find this

%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:

What does this mean? Why does this happen with this particular
file and not others?
--
Dieter Britz
Ralf Fassel
2015-10-08 15:01:12 UTC
Permalink
* Dieter Britz <***@gmail.com>
| In one file, a chapter out of many, when I enter emacs I get
| this message on the bottom half of a split screen:
| The local variable list in chap07.tex contains values
| that may not be safe (*).
--<snip-snip>--
| What does this mean? Why does this happen with this particular
| file and not others?

http://www.gnu.org/software/emacs/manual/html_node/emacs/Safe-File-Variables.html

and related.

HTH
R'
Dieter Britz
2015-10-09 16:27:54 UTC
Permalink
| In one file, a chapter out of many, when I enter emacs I get | this
| The local variable list in chap07.tex contains values | that may not
be safe (*).
--<snip-snip>--
| What does this mean? Why does this happen with this particular | file
and not others?
http://www.gnu.org/software/emacs/manual/html_node/emacs/Safe-File-
Variables.html

That's nice, but how do they get in there? I never asked for
them, and they are evidently not in all files.

Can I just delete those three last lines and the problem is gone,
or what do I have to do?
--
Dieter Britz
evan
2015-10-10 09:54:15 UTC
Permalink
Yes, you can delete those lines.
Post by Ralf Fassel
Post by Ralf Fassel
* Dieter Britz
| In one file, a chapter out of many, when I enter emacs I get | this
| The local variable list in chap07.tex contains values | that may not
be safe (*).
--<snip-snip>--
| What does this mean? Why does this happen with this particular | file
and not others?
http://www.gnu.org/software/emacs/manual/html_node/emacs/Safe-File-
Variables.html
That's nice, but how do they get in there? I never asked for
them, and they are evidently not in all files.
Can I just delete those three last lines and the problem is gone,
or what do I have to do?
--
Dieter Britz
Ralf Fassel
2015-10-10 16:58:20 UTC
Permalink
* Dieter Britz <***@gmail.com>
| On Thu, 08 Oct 2015 17:01:12 +0200, Ralf Fassel wrote:
| > * Dieter Britz <***@gmail.com>
| > | In one file, a chapter out of many, when I enter emacs I get | this
| > message on the bottom half of a split screen:
| >>
| > | The local variable list in chap07.tex contains values | that may not
| > be safe (*).
| > --<snip-snip>--
| >>
| > | What does this mean? Why does this happen with this particular | file
| > and not others?
| >
| > http://www.gnu.org/software/emacs/manual/html_node/emacs/Safe-File-
| Variables.html
| That's nice, but how do they get in there? I never asked for
| them, and they are evidently not in all files.

Someone or something has put them in there. If these are 'your' files,
most probably some Tex-Editing package "helpfully" has set them.
If you got these files from someone else, 'they' find that setting useful.

| Can I just delete those three last lines and the problem is gone,
| or what do I have to do?

You can just delete them. Just be prepared that the next 'save' might
bring them back, if some editing package of yours has added them.
If so, you should check which package it is...

HTH
R'

evan
2015-10-09 13:46:47 UTC
Permalink
To avoid being asked, make sure that you load the latex library before you open the file.

Sometimes local variables can contain malicious code, so emacs is asking you to confirm that it is ok to load the particular local variable.
Post by Dieter Britz
In one file, a chapter out of many, when I enter emacs I get
The local variable list in chap07.tex contains values
that may not be safe (*).
I then get a choice of responses. I choose "y". At the bottom
of the file I find this
%%% mode: latex
%%% TeX-master: t
What does this mean? Why does this happen with this particular
file and not others?
--
Dieter Britz
Loading...