From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Unsafe file variables... Date: 05 Apr 2004 02:44:53 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1081118924 13368 80.91.224.253 (4 Apr 2004 22:48:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 4 Apr 2004 22:48:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 05 00:48:37 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BAGPt-0004Ly-00 for ; Mon, 05 Apr 2004 00:48:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BAGPt-0002zZ-00 for ; Mon, 05 Apr 2004 00:48:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BAGOG-0001Ya-40 for emacs-devel@quimby.gnus.org; Sun, 04 Apr 2004 18:46:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BAGNi-0001Wh-6k for emacs-devel@gnu.org; Sun, 04 Apr 2004 18:46:22 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BAGN9-0001Ca-Bl for emacs-devel@gnu.org; Sun, 04 Apr 2004 18:46:19 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BAGMc-0000vY-5T; Sun, 04 Apr 2004 18:45:14 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (0x503e2644.bynxx3.adsl-dhcp.tele.dk [80.62.38.68]) by pfepa.post.tele.dk (Postfix) with SMTP id 8AD3547FE2D; Mon, 5 Apr 2004 00:45:13 +0200 (CEST) Original-To: David Kastrup In-Reply-To: Original-Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21250 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21250 David Kastrup writes: > Ok, I have had an idea which might be stupid or not. And it might > also have political implications which I am too stupid to see. I just > want to put it out. > > Emacs warns about potentially unsafe file variables and stuff, like > > ;;; Local variables: > ;;; eval: (put 'preview-defmacro 'lisp-indent-function 'defun) > ;;; end: > > Now it is a nuisance to get this question each time, and it is not > feasible to disable the question permanently due to security reasons. There is already a simple solution to this in CVS emacs: Just add it to safe-local-eval-forms (e.g. via customize). -- Kim F. Storm http://www.cua.dk