From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Directory-local variables? Date: Sat, 03 Jan 2009 02:46:20 +0200 Organization: JURTA Message-ID: <874p0h6wtf.fsf@jurta.org> References: <87ljtwle9d.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1230945773 22078 80.91.229.12 (3 Jan 2009 01:22:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 01:22:53 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 03 02:24:01 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 1LIvF7-00025N-As for ged-emacs-devel@m.gmane.org; Sat, 03 Jan 2009 02:23:57 +0100 Original-Received: from localhost ([127.0.0.1]:45602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIvDr-00083I-Ux for ged-emacs-devel@m.gmane.org; Fri, 02 Jan 2009 20:22:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIvCy-0007LH-Vj for emacs-devel@gnu.org; Fri, 02 Jan 2009 20:21:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIvCy-0007Kz-7d for emacs-devel@gnu.org; Fri, 02 Jan 2009 20:21:44 -0500 Original-Received: from [199.232.76.173] (port=45432 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIvCy-0007Kw-4c for emacs-devel@gnu.org; Fri, 02 Jan 2009 20:21:44 -0500 Original-Received: from relay01.kiev.sovam.com ([62.64.120.200]:4134) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LIvCw-0005zl-6X; Fri, 02 Jan 2009 20:21:42 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1LIvCr-000Jgq-SA; Sat, 03 Jan 2009 03:21:38 +0200 In-Reply-To: <87ljtwle9d.fsf@jurta.org> (Juri Linkov's message of "Wed, 31 Dec 2008 14:29:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: f216f799903dddc2f9accd11d8a1fded X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 6639 [Jan 03 2009] X-SpamTest-Info: {received from trusted relay: common white list} X-SpamTest-Info: {HEADERS: header Content-Type found without required header Content-Transfer-Encoding} X-SpamTest-Method: white ip list X-SpamTest-Rate: 10 X-SpamTest-Status: Trusted X-SpamTest-Status-Extended: trusted X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0278], KAS30/Release X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.8-5.1 (or MacOS X 10.2-10.3) 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:107536 Archived-At: >> PS: it now occurs to me that the name ".dir-locals.el" is redundant. >> It could just say ".locals.el" or ".local-variables.el" since it's >> placed in a directory. Just like file variables are enclosed in >> a "Local Variables" section rather than a "File Local >> Variables" section. > > ".locals.el" is a reasonably short file name, and it looks nicer than > ".dir-locals.el" without redundant "dir-" part. So perhaps we should > finally settle on this name. One thing that still disturbs me is that this file is not in the same format as in a Local Variables: section. 1. File local variables ;; Local Variables: ;; mode: change-log ;; add-log-time-zone-rule: t ;; fill-column: 74 ;; End: 2. Directory-wide file local variables (change-log-mode . ((add-log-time-zone-rule . t) (fill-column . 74))) Two different formats for the same feature is a bad thing. It requires complete rewriting of these settings when moving file local variables to the directory-wide file and back. This is very inconvenient. While it is not too late, I think we should use the same easy to write format as in a Local Variables: section with keeping already implemented features of directory-wide file variables (specifying multiply mode settings in the same file). Another thing that needs to be fixed is caching data from the directory-wide file. Currently after changing the settings in this file they don't become effective. We should check the file timestamp and reread them. -- Juri Linkov http://www.jurta.org/emacs/