From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Arne_J=F8rgensen?= Newsgroups: gmane.emacs.help Subject: Problem with `dir-locals-set-class-variables' Date: Fri, 06 Apr 2012 10:26:41 +0200 Organization: Arne Joergensen -- http://arnested.dk/ Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1333701026 26740 80.91.229.3 (6 Apr 2012 08:30:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2012 08:30:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 06 10:30:25 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SG4Yq-0004UF-3z for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2012 10:30:24 +0200 Original-Received: from localhost ([::1]:46356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SG4Yk-0007KK-KQ for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2012 04:30:18 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!feed118.news.tele.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (darwin) Cancel-Lock: sha1:B8FbaIL7qCk70q8p7y5gaql4RzQ= Original-Lines: 26 Original-NNTP-Posting-Host: 85.81.8.159 Original-X-Trace: news.sunsite.dk DXC=QmO2DDTQW6lE406ddB4h2jYSB=nbEKnkkE4O[5j5bPod3`c7HBK2ekj28]Zoe[3K_c2eeioNb=`gnLe_CMlCdWMn?DnJl7^Pb6o Original-X-Complaints-To: staff@sunsite.dk Original-Xref: usenet.stanford.edu gnu.emacs.help:191943 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84359 Archived-At: I am trying to use `dir-locals-set-class-variables'. If I do (dir-locals-set-class-variables 'my-test '((nil . ((my-test-var . "some-value"))))) (dir-locals-set-directory-class "~/my-test-dir" 'my-test) and then visit a file i.e. ~/my-test-dir/my-test-file the variable `my-test-var' will be applied as local variable just as it should. But if I want to use the other form of `dir-locals-set-class-variables' where variables is of the form (DIRECTORY . LIST) like this: (dir-locals-set-class-variables 'my-test '(("~/my-test-dir" . ((nil . ((my-test-var . "some-value"))))))) and then visit a file i.e. ~/my-test-dir/my-test-file the variable is NOT applied. Am I using the second form in a wrong way or what am I missing? I have tried using both Emacs 23.1.1 and form a recent build 24.0.94.1. Kind regards, Arne