From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Add file-locals and dir-locals Date: Thu, 06 Aug 2009 00:14:56 +0100 Message-ID: References: <20090712144137.GB2524@muc.de> <87hbxhony6.fsf@stupidchicken.com> <20090712180623.GA1009@muc.de> <4A5A2BE1.3050206@harpegolden.net> <87ab34p0o4.fsf_-_@mail.jurta.org> <4A602EF9.9070306@gmx.at> <87d47z3584.fsf@mail.jurta.org> <4A61D293.6020105@gmx.at> <87ocrhk53y.fsf@mail.jurta.org> <4A62F78A.7030201@gmx.at> <87tz187dac.fsf@mail.jurta.org> <87k521o6kh.fsf@mail.jurta.org> <877hxj6sgi.fsf@mail.jurta.org> <87bpmu7wre.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249514118 7113 80.91.229.12 (5 Aug 2009 23:15:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Aug 2009 23:15:18 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 06 01:15:11 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MYphO-0004vS-Bt for ged-emacs-devel@m.gmane.org; Thu, 06 Aug 2009 01:15:10 +0200 Original-Received: from localhost ([127.0.0.1]:36226 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYphN-0002vp-MC for ged-emacs-devel@m.gmane.org; Wed, 05 Aug 2009 19:15:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYphI-0002vi-Bz for emacs-devel@gnu.org; Wed, 05 Aug 2009 19:15:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYphD-0002v2-QG for emacs-devel@gnu.org; Wed, 05 Aug 2009 19:15:04 -0400 Original-Received: from [199.232.76.173] (port=42204 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYphD-0002uz-LQ for emacs-devel@gnu.org; Wed, 05 Aug 2009 19:14:59 -0400 Original-Received: from ppsw-0.csi.cam.ac.uk ([131.111.8.130]:44885) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYphD-0003dZ-9k for emacs-devel@gnu.org; Wed, 05 Aug 2009 19:14:59 -0400 X-Cam-AntiVirus: no malware found X-Cam-SpamDetails: not scanned X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/ Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]:47656) by ppsw-0.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.150]:587) with esmtpsa (LOGIN:sl392) (TLSv1:DHE-RSA-AES128-SHA:128) id 1MYphB-0002lb-0k (Exim 4.70) (return-path ); Thu, 06 Aug 2009 00:14:57 +0100 In-Reply-To: <87bpmu7wre.fsf@mail.jurta.org> (Juri Linkov's message of "Thu, 06 Aug 2009 00:52:41 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:113730 Archived-At: On 2009-08-05 22:52 +0100, Juri Linkov wrote: >> For the first two commands, if they are called interactively, do you >> think the file variables should be evaled after being added? > > Interesting question. Formally speaking, evaluating them seems right > to keep local variables consistent with real values in the current > buffer. > > But such evaluation requires also executing all safety mechanisms that > also may ask a question whether a variable is safe. By executing all safety mechanisms, do you mean calling `hack-local-variables' or `hack-local-variables-prop-line'? The question whether a variable is safe or not will be asked anyway i.e. the next time the file is opened. And it is probably better be asked when it is added since at this time the user has better idea what to do with it. There are local variables that can not be activated easily except by re-opening the file. > Since there is no such associated burden while adding local variables > manually I don't think this is the right thing to do when adding them > automatically. -- Leo's Emacs uptime: 1 day, 22 hours, 51 minutes, 33 seconds