From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: .dir-locals.el Date: Fri, 26 Dec 2008 17:18:56 +0200 Message-ID: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1230304789 20835 80.91.229.12 (26 Dec 2008 15:19:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 26 Dec 2008 15:19:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 26 16:20:57 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 1LGEUi-0005Q6-GW for ged-emacs-devel@m.gmane.org; Fri, 26 Dec 2008 16:20:57 +0100 Original-Received: from localhost ([127.0.0.1]:36869 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGETV-0006ul-9d for ged-emacs-devel@m.gmane.org; Fri, 26 Dec 2008 10:19:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGETQ-0006uf-WD for emacs-devel@gnu.org; Fri, 26 Dec 2008 10:19:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGETQ-0006uO-49 for emacs-devel@gnu.org; Fri, 26 Dec 2008 10:19:36 -0500 Original-Received: from [199.232.76.173] (port=52427 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGETP-0006uL-VB for emacs-devel@gnu.org; Fri, 26 Dec 2008 10:19:35 -0500 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:30500) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LGETP-00058Q-Kn for emacs-devel@gnu.org; Fri, 26 Dec 2008 10:19:35 -0500 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KCH00F00PAHPV00@i_mtaout5.012.net.il> for emacs-devel@gnu.org; Fri, 26 Dec 2008 17:21:00 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.252.83]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KCH00K4BPAYYPP4@i_mtaout5.012.net.il> for emacs-devel@gnu.org; Fri, 26 Dec 2008 17:20:59 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:107302 Archived-At: This part of .dir-locals.el from today's CVS does not seem to work: ("lisp/mail/pmail*" . ((nil . ((change-log-default-name . "ChangeLog.pmail")))))) (To see that, you will need to remove the file-local variables from pmail*.el files, because they specify ChangeLog.pmail there as well.) I took a look at relevant functions in files.el, and it looks like this wasn't supposed to work with file wildcards. This fragment from dir-locals-collect-variables: (when (and sub-file-name (>= (length sub-file-name) (length key)) (string= key (substring sub-file-name 0 (length key)))) (setq variables (dir-locals-collect-variables (cdr entry) root variables)))) assumes that "lisp/mail/pmail*" is a substring of "lisp/mail/pmail.el", which of course is false because of the `*'. The documentation of the feature in the manual also seems to say that the intent is to specify here a name of a _directory_ and have that apply to all the files under that directory. I tried to see if this works if I change "lisp/mail/pmail*" to just "lisp/mail", and that still didn't work for an arbitrary Lisp file in lisp/mail: typing "C-x 4 a" after visiting the file still pops up ChangeLog, not ChangeLog.pmail. So maybe I'm missing something here, and the above report is bogus; apologies if that is the case.