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: files.el: Patch to make project-settings optional/customizable Date: Sat, 22 Nov 2008 21:08:19 +0200 Organization: JURTA Message-ID: <87zljrh93w.fsf@jurta.org> References: <5f0ff9220811130629t505badf9kb1bcc380df89a08f@mail.gmail.com> <200811131619.mADGJukm010206@mothra.ics.uci.edu> <87prkz4kgh.fsf@cyd.mit.edu> <200811131728.mADHSH2M010654@mothra.ics.uci.edu> <871vxflbxb.fsf@cyd.mit.edu> <200811131848.mADImPMQ011099@mothra.ics.uci.edu> <200811181636.mAIGa9Lx000571@mothra.ics.uci.edu> <87prks6693.fsf@jurta.org> <87iqqjcp3j.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 1227381093 6320 80.91.229.12 (22 Nov 2008 19:11:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2008 19:11:33 +0000 (UTC) Cc: Tom Tromey , "T.V. Raman" , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 22 20:12:36 2008 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 1L3xuB-0003r5-MR for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2008 20:12:31 +0100 Original-Received: from localhost ([127.0.0.1]:45583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3xt2-00031L-JG for ged-emacs-devel@m.gmane.org; Sat, 22 Nov 2008 14:11:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3xsw-00030G-Lj for emacs-devel@gnu.org; Sat, 22 Nov 2008 14:11:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3xsv-0002zh-8B for emacs-devel@gnu.org; Sat, 22 Nov 2008 14:11:14 -0500 Original-Received: from [199.232.76.173] (port=34484 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3xsv-0002zc-4r for emacs-devel@gnu.org; Sat, 22 Nov 2008 14:11:13 -0500 Original-Received: from relay03.kiev.sovam.com ([62.64.120.201]:59740) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3xsv-0000ZO-3j for emacs-devel@gnu.org; Sat, 22 Nov 2008 14:11:13 -0500 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay03.kiev.sovam.com with esmtp (Exim 4.67) (envelope-from ) id 1L3xsq-000J0R-7W; Sat, 22 Nov 2008 21:11:08 +0200 In-Reply-To: (Stefan Monnier's message of "Wed, 19 Nov 2008 21:18:37 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu) X-Scanner-Signature: 5389b9e13478507b5d7b23e4ed053241 X-DrWeb-checked: yes X-SpamTest-Envelope-From: juri@jurta.org X-SpamTest-Group-ID: 00000000 X-SpamTest-Header: Trusted X-SpamTest-Info: Profiles 5805 [Nov 22 2008] 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: Genre and OS details not recognized. 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:105969 Archived-At: >> So let's get rid of "project" in the function names and use the common >> prefix dir-local-variables by analogy with file-local-variables. > > Sounds OK. > >> Since the only term the user have to remember will be "directory-local >> variables" this suggests using a file name derived from it. Since >> the file name should be short a good candidate is ".dir-locals.el". > > Fine by me, Done. Since seeing constant file names repeated in several places hurts my eyes, I also created defconst for the file name, as Richard suggested - with the docstring saying why it is constant. -- Juri Linkov http://www.jurta.org/emacs/