* Scheme Mode: preventing evaluation of *.pkg when opening?
@ 2020-04-03 11:58 Nicholas Papadonis
2020-04-03 12:07 ` tomas
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Papadonis @ 2020-04-03 11:58 UTC (permalink / raw)
To: Emacs mailing list; +Cc: MIT-Scheme-users
I downloaded the mit-scheme source and encounter the following behavior when opening a file named “runtime.pkg”.
<— snip —>
“The local variables list in runtime.pkg contains values that may not be safe (*)”
“Do you want to apply it?”
“Please type y, n, or ! or C-v to scroll”
Then I answer “n” and the same screen is presented again.
Finally the mode line indicates “Scheme Gambit/A”
<— snip —>
Does anyone know what is causing this behavior vs just simply loading the buffer? How do I disable this behavior?
I’m not sure why Emacs is trying to evaluate a buffer when I have not instructed it to do so.
Thank you,
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Scheme Mode: preventing evaluation of *.pkg when opening?
2020-04-03 11:58 Scheme Mode: preventing evaluation of *.pkg when opening? Nicholas Papadonis
@ 2020-04-03 12:07 ` tomas
0 siblings, 0 replies; 2+ messages in thread
From: tomas @ 2020-04-03 12:07 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]
On Fri, Apr 03, 2020 at 07:58:47AM -0400, Nicholas Papadonis wrote:
> I downloaded the mit-scheme source and encounter the following behavior when opening a file named “runtime.pkg”.
>
> <— snip —>
> “The local variables list in runtime.pkg contains values that may not be safe (*)”
> “Do you want to apply it?”
> “Please type y, n, or ! or C-v to scroll”
>
> Then I answer “n” and the same screen is presented again.
>
> Finally the mode line indicates “Scheme Gambit/A”
> <— snip —>
>
> Does anyone know what is causing this behavior vs just simply loading the buffer? How do I disable this behavior?
>
> I’m not sure why Emacs is trying to evaluate a buffer when I have not instructed it to do so.
It's not trying to evaluate the whole buffer. Just some
variables which configure Emacs. Those can be set in the
file. Some are considered "safe", some not. In the latter
case you are asked.
See "File Variables" in the Emacs documentation for the
whole story. If you haven't got a local copy, you can
have it online here [1].
You can see them either at the file's very top, or at
its very bottom. Depending on your needs, you can remove
them, configure Emacs to treat them as non-dangerous, or
tell Emacs to ignore all this stuff (cf. configuration
variable `enable-local-variables').
Cheers
[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html#File-Variables
-- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-03 12:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-03 11:58 Scheme Mode: preventing evaluation of *.pkg when opening? Nicholas Papadonis
2020-04-03 12:07 ` tomas
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).