help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with `dir-locals-set-class-variables'


From: Arne Jørgensen
Subject: Problem with `dir-locals-set-class-variables'
Date: Fri, 06 Apr 2012 10:26:41 +0200
User-agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (darwin)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]