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: applying .dir-locals.el settings when buffer-file-name is nil Date: Sun, 19 Jul 2009 21:21:01 +0300 Organization: JURTA Message-ID: <87hbx87cvm.fsf@mail.jurta.org> References: <200907191747.n6JHl0SV019287@godzilla.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248027767 16854 80.91.229.12 (19 Jul 2009 18:22:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Jul 2009 18:22:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 19 20:22:40 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 1MSb20-0000Lb-69 for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2009 20:22:40 +0200 Original-Received: from localhost ([127.0.0.1]:49602 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSb1z-0003zG-FX for ged-emacs-devel@m.gmane.org; Sun, 19 Jul 2009 14:22:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MSb1a-0003pl-Gt for emacs-devel@gnu.org; Sun, 19 Jul 2009 14:22:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MSb1V-0003nd-HZ for emacs-devel@gnu.org; Sun, 19 Jul 2009 14:22:13 -0400 Original-Received: from [199.232.76.173] (port=45985 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MSb1V-0003nY-8g for emacs-devel@gnu.org; Sun, 19 Jul 2009 14:22:09 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:50520 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MSb1U-0002bx-Po for emacs-devel@gnu.org; Sun, 19 Jul 2009 14:22:09 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.55.64.cable.starman.ee [82.131.55.64]) by mx1.starman.ee (Postfix) with ESMTP id 188B43F4094; Sun, 19 Jul 2009 21:22:02 +0300 (EEST) In-Reply-To: <200907191747.n6JHl0SV019287@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Sun, 19 Jul 2009 10:47:00 -0700 (PDT)") 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:112766 Archived-At: > .dir-locals.el settings do not apply to buffers when (null > buffer-file-name) even when `default-directory' for those buffers is > dominated by .dir-locals.el. > > VC for example creates buffers for which it would be good to be able to > have .dir-locals.el. Examples: the log-edit-mode buffers - be able to > set some checkin rules, or automatically add things to the commit > message, the vc-diff buffers - show trailing whitespace, etc. I noticed this limitation as well and know no reason why it should be. For file-local variables it is justified because only file can hold a list of file-local variables. But I think dir-local variables should have a wider coverage including non-file buffers. -- Juri Linkov http://www.jurta.org/emacs/