From: <tomas@tuxteam.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Scheme Mode: preventing evaluation of *.pkg when opening?
Date: Fri, 3 Apr 2020 14:07:45 +0200 [thread overview]
Message-ID: <20200403120745.GI27268@tuxteam.de> (raw)
In-Reply-To: <73B5F809-232C-4869-B780-B0140A7397AC@gmail.com>
[-- 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 --]
prev parent reply other threads:[~2020-04-03 12:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-03 11:58 Scheme Mode: preventing evaluation of *.pkg when opening? Nicholas Papadonis
2020-04-03 12:07 ` tomas [this message]
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=20200403120745.GI27268@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=help-gnu-emacs@gnu.org \
/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.
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).