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: Add file-locals and dir-locals Date: Sat, 18 Jul 2009 02:06:29 +0300 Organization: JURTA Message-ID: <87d47y3o5m.fsf@mail.jurta.org> References: <20090712144137.GB2524@muc.de> <87hbxhony6.fsf@stupidchicken.com> <20090712180623.GA1009@muc.de> <4A5A2BE1.3050206@harpegolden.net> <87ab34p0o4.fsf_-_@mail.jurta.org> <87bpnjgvjv.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247872251 12320 80.91.229.12 (17 Jul 2009 23:10:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Jul 2009 23:10:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 18 01:10:44 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 1MRwZd-00023i-Ut for ged-emacs-devel@m.gmane.org; Sat, 18 Jul 2009 01:10:42 +0200 Original-Received: from localhost ([127.0.0.1]:47473 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRwZd-0003xa-AE for ged-emacs-devel@m.gmane.org; Fri, 17 Jul 2009 19:10:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MRwZZ-0003vj-Bg for emacs-devel@gnu.org; Fri, 17 Jul 2009 19:10:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MRwZU-0003my-QP for emacs-devel@gnu.org; Fri, 17 Jul 2009 19:10:37 -0400 Original-Received: from [199.232.76.173] (port=49351 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MRwZU-0003mk-Ga for emacs-devel@gnu.org; Fri, 17 Jul 2009 19:10:32 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:45414 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MRwZO-0003vm-9C; Fri, 17 Jul 2009 19:10:26 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.31.83.cable.starman.ee [82.131.31.83]) by mx2.starman.ee (Postfix) with ESMTP id 74D473F40B0; Sat, 18 Jul 2009 02:09:59 +0300 (EEST) In-Reply-To: <87bpnjgvjv.fsf@lola.goethe.zz> (David Kastrup's message of "Fri, 17 Jul 2009 17:48:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) 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:112648 Archived-At: > Wouldn't it be easier if any file variables in the .dir-locals file > would count as dir-local? Then copying them around would be much more > natural. Obvious disadvantages: > > a) if different line prefixes are used in different files, when > combining them, one has to massage them. > > b) file-locals for the .dir-locals.el file are not feasible. Generally would be good, but a stopper is the need to add mode names to subsets of mode-specific file-locals. Currently .dir-locals.el groups them by modes like: ((c-mode . ((c-file-style . "GNU"))) (change-log-mode . ((add-log-time-zone-rule . t) (fill-column . 74)))) I already proposed the following format for the dir-locals file syntactically compatible with the file-locals format: -*- mode: c -*- Local variables: c-file-style: "GNU" End: -*- mode: change-log -*- Local variables: add-log-time-zone-rule: t fill-column: 74 End: But this syntax is not Lispish. -- Juri Linkov http://www.jurta.org/emacs/