From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: mark .dir-locals.el buffer or file as safe instead of variables as safe Date: Wed, 27 Jun 2018 16:34:43 +1200 Message-ID: References: <037e51edfe70cb450157d1fb6f0ace0d@webmail.orcon.net.nz> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1530075666 957 195.159.176.226 (27 Jun 2018 05:01:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 27 Jun 2018 05:01:06 +0000 (UTC) User-Agent: Orcon Webmail Cc: Emacs-devel , emacs-devel@gnu.org To: cdelia@dc.uba.ar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 27 07:01:01 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fY2Zh-00008f-Go for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2018 07:01:01 +0200 Original-Received: from localhost ([::1]:56683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fY2bo-00035J-Ts for ged-emacs-devel@m.gmane.org; Wed, 27 Jun 2018 01:03:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fY2AQ-0005IW-GV for emacs-devel@gnu.org; Wed, 27 Jun 2018 00:34:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fY2AP-0001jg-MP for emacs-devel@gnu.org; Wed, 27 Jun 2018 00:34:54 -0400 Original-Received: from smtp-1.orcon.net.nz ([60.234.4.34]:48204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fY2AK-0001Ze-GK; Wed, 27 Jun 2018 00:34:48 -0400 Original-Received: from [10.253.37.70] (port=43518 helo=webmail.orcon.net.nz) by smtp-1.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1fY2AG-0007mO-1v; Wed, 27 Jun 2018 16:34:44 +1200 Original-Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Wed, 27 Jun 2018 16:34:43 +1200 In-Reply-To: <037e51edfe70cb450157d1fb6f0ace0d@webmail.orcon.net.nz> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 60.234.4.34 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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 Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:226759 Archived-At: On 2018-06-27 16:24, Phil Sainty wrote: > If "hell itself" wanted to set the *same* value that was confirmed on > "trusted land" then Emacs will be happy with that I should have also pointed out that variables for which this behaviour would be unsafe are also provided for. (elisp)File Local Variables says: > Some variables are considered “risky”. If a variable is risky, it is > never entered automatically into ‘safe-local-variable-values’; Emacs > always queries before setting a risky variable, unless the user > explicitly allows a value by customizing ‘safe-local-variable-values’ > directly. -Phil