[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
((nil
(eval message "hello")))
- Two problems with directory-local variables, Marcin Borkowski, 2018/09/17
- Re: Two problems with directory-local variables, Phil Sainty, 2018/09/17
- Re: Two problems with directory-local variables, Marcin Borkowski, 2018/09/17
- Re: Two problems with directory-local variables,
Juri Linkov <=
- Re: Two problems with directory-local variables, Phil Sainty, 2018/09/17
- Re: Two problems with directory-local variables, Juri Linkov, 2018/09/17
- Re: Two problems with directory-local variables, Stefan Monnier, 2018/09/17
- Re: Two problems with directory-local variables, Juri Linkov, 2018/09/19
- RE: Two problems with directory-local variables, Drew Adams, 2018/09/19
- Re: Two problems with directory-local variables, Juri Linkov, 2018/09/20