[Top][All Lists]

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

Re: Two problems with directory-local variables

From: Juri Linkov
Subject: Re: Two problems with directory-local variables
Date: Tue, 18 Sep 2018 02:15:06 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)

>>> but this entry in .dir-locals.el does not work:
>>> ((nil . ((eval '(message "hello")))))
>> That is because the syntax is incorrect.  You want:
>> ((nil . ((eval . (message "hello")))))
>> or equivalently, without dotted pair syntax in the eval:
>> ((nil . ((eval message "hello"))))
> Thanks!
> Actually, this is what `add-dir-local-variable' puts in .dir-locals.el,
> which looks a bit weird.

If you think there is a bug in add-dir-local-variable, please show a recipe
how did you get an incorrect setting.  When I tried, it correctly added

    (eval message "hello")))

reply via email to

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