From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Unsafe file variables... Date: 03 Apr 2004 21:06:03 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1081019468 17129 80.91.224.253 (3 Apr 2004 19:11:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Apr 2004 19:11:08 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Apr 03 21:11:03 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 1B9qXn-0000Ir-00 for ; Sat, 03 Apr 2004 21:11:03 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B9qXm-0001e2-00 for ; Sat, 03 Apr 2004 21:11:03 +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 1B9qVS-0002Mz-AT for emacs-devel@quimby.gnus.org; Sat, 03 Apr 2004 14:08:38 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B9qUm-0002JT-Sl for emacs-devel@gnu.org; Sat, 03 Apr 2004 14:07:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B9qSy-00018o-Sa for emacs-devel@gnu.org; Sat, 03 Apr 2004 14:06:38 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B9qSw-00015p-5f for emacs-devel@gnu.org; Sat, 03 Apr 2004 14:06:02 -0500 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1B9qSv-0002Kx-LX for emacs-devel@gnu.org; Sat, 03 Apr 2004 14:06:01 -0500 Original-To: emacs-devel@gnu.org Original-Lines: 36 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:21231 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21231 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. How about the following then? ;;; Local variables: ;;; eval: (put 'preview-defmacro 'lisp-indent-function 'defun) ;;; end: ;;; gpg-signed: iD8DBQFAbwnJBo350SLJfmgRAhf9AKCFvutpMNxc4oGK/vh2fdVV0MT/dgCeJn66 ;;; Qc8BXtn2zlGbofY2YMLIAg8= ;;; =s5sr Something like that. I would then customize a variable that tells whose signatures I trust enough not to get the stupid question again and again. Obviously, this also makes it possible for me to look at the local variable block once, decide that it is good enough for me, and sign it. Any change in local variables will render the signature invalid, of course. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum