From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: Problem with `dir-locals-set-class-variables' Date: Fri, 06 Apr 2012 12:26:17 -0400 Message-ID: <0gbon4su6u.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1333729591 13482 80.91.229.3 (6 Apr 2012 16:26:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Apr 2012 16:26:31 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Arne =?utf-8?Q?J=C3=B8rgensen?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 06 18:26:28 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 1SGBzX-0007on-23 for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2012 18:26:27 +0200 Original-Received: from localhost ([::1]:52934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGBzW-0007fo-Cm for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Apr 2012 12:26:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGBzR-0007fR-Ox for help-gnu-emacs@gnu.org; Fri, 06 Apr 2012 12:26:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SGBzQ-0002tv-5w for help-gnu-emacs@gnu.org; Fri, 06 Apr 2012 12:26:21 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:49062) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SGBzQ-0002tr-2x for help-gnu-emacs@gnu.org; Fri, 06 Apr 2012 12:26:20 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SGBzO-0008Up-15; Fri, 06 Apr 2012 12:26:18 -0400 X-Spook: Jiang Zemin DES halcon Rubin FIPS140 cryptanalysis X-Ran: sbaV2P^J!^(z(.hh(+^j*?Hn.d5ze#l,8]wgdipV'6{W;2E|TS%NCvo4h2ZHD|vGUv7C\n X-Hue: blue X-Attribution: GM Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: ("Arne =?utf-8?Q?J=C3=B8rgensen?= =?utf-8?Q?=22's?= message of "Fri, 06 Apr 2012 10:26:41 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 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:84365 Archived-At: Arne J=C3=B8rgensen wrote: > 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. I don't see this form documented anywhere. What makes you think it should work? C-h f dir-locals-set-class-variables (dir-locals-set-directory-class DIRECTORY CLASS &optional MTIME) [...] CLASS is the name of a project class, a symbol.