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: The `risky-local-variable' blacklist Date: 01 Sep 2004 09:11:22 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.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 1094023158 9794 80.91.224.253 (1 Sep 2004 07:19:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2004 07:19:18 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 01 09:19:09 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C2POe-0003sK-00 for ; Wed, 01 Sep 2004 09:19:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2PTZ-0008Cm-0G for ged-emacs-devel@m.gmane.org; Wed, 01 Sep 2004 03:24:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C2PSu-0007um-DS for emacs-devel@gnu.org; Wed, 01 Sep 2004 03:23:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C2PSp-0007sV-Th for emacs-devel@gnu.org; Wed, 01 Sep 2004 03:23:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C2PSp-0007sP-Or for emacs-devel@gnu.org; Wed, 01 Sep 2004 03:23:27 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1C2PNe-0004Jm-HF for emacs-devel@gnu.org; Wed, 01 Sep 2004 03:18:07 -0400 Original-Received: (qmail 5941 invoked from network); 1 Sep 2004 07:11:24 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 1 Sep 2004 07:11:24 -0000 Original-To: rms@gnu.org In-Reply-To: Original-Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26682 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26682 Richard Stallman writes: > Here's an idea that might do the job and be acceptable. Each time > Emacs sees a variable/value combination that is new for the current > user, it asks the user to confirm that combination. Any given > combination only needs to be confirmed once by any given user. This > could reduce the repetitive nuisance down to the point where people > will (1) accept the burden and (2) not zone out when they see the > questions. Quoting from NEWS, we already added the foundation for this: ** The variable `safe-local-eval-forms' specifies a list of forms that are ok to evaluate when they appear in an `eval' local variables specification. Normally Emacs asks for confirmation before evaluating such a form, but if the form appears in this list, no confirmation is needed. IIRC, we discussed back then whether to give the user a choice to automatically add an eval form to that list when prompted to confirm. But it was rejected/postponed due to lack of interest. Since safe-local-eval-forms is a defcustom, the feature can probably be implemented quite easily via suitable custom functions that updates and saves the value. BTW, shouldn't safe-local-eval-forms be marked risky ??? -- Kim F. Storm http://www.cua.dk