From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Scheme Mode: preventing evaluation of *.pkg when opening? Date: Fri, 3 Apr 2020 14:07:45 +0200 Message-ID: <20200403120745.GI27268@tuxteam.de> References: <73B5F809-232C-4869-B780-B0140A7397AC@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GBuTPvBEOL0MYPgd" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="34198"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 03 14:08:24 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKL7X-0008on-Gm for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Apr 2020 14:08:23 +0200 Original-Received: from localhost ([::1]:54502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKL7W-00015p-In for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Apr 2020 08:08:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51396) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKL75-00012O-Or for help-gnu-emacs@gnu.org; Fri, 03 Apr 2020 08:07:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKL74-0005WH-Bb for help-gnu-emacs@gnu.org; Fri, 03 Apr 2020 08:07:55 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36759) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKL73-0005SD-RT for help-gnu-emacs@gnu.org; Fri, 03 Apr 2020 08:07:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=we7aOEhDN/H/QjZR/41/QF5Li0Th8pgW+Cpj/Melh44=; b=VYYH1QfjDVlh9mvVkdu+xprIemnnGFe7leRkDgVas8mXNfokY0TjId5VtQGoPlBKozKQayXvDtxAMwugO7qzxhdUDyZisgTzQQ6gC8qRJJkheCyXEWwKKugb00YCcS0YjaUjBvFfpG/oFLG0y234Vv2haXXDaToJ/M4dbh92SMOsr2XC/AW42yS4Jsc4z/rgfA+6BYZd/r9Z7ka44x+DSmpstoP4SRHJMOSJiyB/+2xymT5nXE7vfYLhuORhVhh1UxoHapOk4wV9wVtMe8Qo68osxh8lkWkQGRW9axooj+GPfEEjIqFIC6DeadZwFcnvD55gDWe053i9amaeW5mUeA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1jKL6v-0002Fl-PJ for help-gnu-emacs@gnu.org; Fri, 03 Apr 2020 14:07:45 +0200 Content-Disposition: inline In-Reply-To: <73B5F809-232C-4869-B780-B0140A7397AC@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122742 Archived-At: --GBuTPvBEOL0MYPgd Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 03, 2020 at 07:58:47AM -0400, Nicholas Papadonis wrote: > I downloaded the mit-scheme source and encounter the following behavior w= hen opening a file named =E2=80=9Cruntime.pkg=E2=80=9D. >=20 > <=E2=80=94 snip =E2=80=94> > =E2=80=9CThe local variables list in runtime.pkg contains values that may= not be safe (*)=E2=80=9D > =E2=80=9CDo you want to apply it?=E2=80=9D > =E2=80=9CPlease type y, n, or ! or C-v to scroll=E2=80=9D >=20 > Then I answer =E2=80=9Cn=E2=80=9D and the same screen is presented again. >=20 > Finally the mode line indicates =E2=80=9CScheme Gambit/A=E2=80=9D > <=E2=80=94 snip =E2=80=94> >=20 > Does anyone know what is causing this behavior vs just simply loading the= buffer? How do I disable this behavior? >=20 > I=E2=80=99m 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-Variable= s.html#File-Variables -- t --GBuTPvBEOL0MYPgd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl6HJxEACgkQBcgs9XrR2kbaXwCfYnJyVNHheDTxIGiswF+j/yYf 78IAn0ocG5BCVBW65R8b40tCgVQi42es =60k9 -----END PGP SIGNATURE----- --GBuTPvBEOL0MYPgd--