From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Is there any possibility recursively by dir propagate Emacs settings like .dir-locals.el per dir? Date: Wed, 29 Dec 2010 06:48:03 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1293623318 28432 80.91.229.12 (29 Dec 2010 11:48:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 29 Dec 2010 11:48:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 29 12:48:32 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PXuW8-0007Xo-CR for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Dec 2010 12:48:32 +0100 Original-Received: from localhost ([127.0.0.1]:55994 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXuW7-00057b-GZ for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Dec 2010 06:48:31 -0500 Original-Received: from [140.186.70.92] (port=46262 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PXuVk-00057Q-Pf for help-gnu-emacs@gnu.org; Wed, 29 Dec 2010 06:48:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PXuVj-0002Ms-Ma for help-gnu-emacs@gnu.org; Wed, 29 Dec 2010 06:48:08 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:53741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PXuVj-0002Mo-Jf for help-gnu-emacs@gnu.org; Wed, 29 Dec 2010 06:48:07 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1PXuVf-00057A-Vq for help-gnu-emacs@gnu.org; Wed, 29 Dec 2010 06:48:04 -0500 In-reply-to: (message from Oleksandr Gavenko on Wed, 29 Dec 2010 00:30:36 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77951 Archived-At: > From: Oleksandr Gavenko > Date: Wed, 29 Dec 2010 00:30:36 +0200 > > I) 1. visit to file > 2. check for ./.dir-locals.el > 3. if ./.dir-locals.el not found, check for ../.dir-locals.el > 4. if ../.dir-locals.el not found, check for ../../.dir-locals.el > ... > > or > > II) 1. visit to file > 2. check for ./.dir-locals.el > 3. check for ../.dir-locals.el > 4. check for ../../.dir-locals.el > ... > > I like II) variant. Emacs uses I). See locate-dominating-file. > If I) right how deep .dir-locals.el can include upper .dir-locals.el? I don't think you can.