From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Clarification on using safe-local-variable-values Date: Thu, 09 Mar 2006 09:50:53 -0500 Message-ID: <87irqn659u.fsf@stupidchicken.com> References: <200603081955.k28JtxHO009985@chls308.ch.intel.com> <87oe0gu1kb.fsf@stupidchicken.com> <17423.16884.499749.8016@chls308.ch.intel.com> <87u0a8a9ki.fsf@stupidchicken.com> <17423.28072.2696.723424@chls308.ch.intel.com> <87zmk05vrz.fsf@stupidchicken.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1141915948 6763 80.91.229.2 (9 Mar 2006 14:52:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Mar 2006 14:52:28 +0000 (UTC) Cc: "Andrew M. Scott" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 09 15:52:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHMU8-0008OB-Au for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2006 15:51:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHMU7-0002fF-1C for ged-emacs-devel@m.gmane.org; Thu, 09 Mar 2006 09:51:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FHMTf-0002Wb-RA for emacs-devel@gnu.org; Thu, 09 Mar 2006 09:50:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FHMTd-0002PD-00 for emacs-devel@gnu.org; Thu, 09 Mar 2006 09:50:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHMTc-0002OZ-JH for emacs-devel@gnu.org; Thu, 09 Mar 2006 09:50:52 -0500 Original-Received: from [18.95.6.38] (helo=outgoing.mit.edu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FHMWh-0005SG-SJ for emacs-devel@gnu.org; Thu, 09 Mar 2006 09:54:03 -0500 Original-Received: by outgoing.mit.edu (Postfix, from userid 1000) id 205EB1E4142; Thu, 9 Mar 2006 09:50:53 -0500 (EST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: (Kim F. Storm's message of "Thu, 09 Mar 2006 09:39:59 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:51408 Archived-At: storm@cua.dk (Kim F. Storm) writes: > Chong Yidong writes: > >>> # after-save-hook: ((lambda () (build-mail-aliases))) > >> That is working as intended. Emacs does not save after-save-hook >> because that is a risky local variable, and those are never saved. > > I don't quite understand... > > If the user has said that it is safe to use that specific value > of that variable, why can't you save that value? The reason why > the user want to save it, is to avoid the question in the future. I suggested this some time ago, but nobody responded. Note that allowing saves for risky local variables is practically equivalent to eliminating the concept of risky local variables. If Emacs allows saves for any variable not considered safe, the `risky-local-variable' property has no special effect (as far as the loading of local variables is concerned).