From: Juri Linkov <juri@linkov.net>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Phil Sainty <psainty@orcon.net.nz>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Two problems with directory-local variables
Date: Tue, 18 Sep 2018 02:15:06 +0300 [thread overview]
Message-ID: <87k1njyav9.fsf@mail.linkov.net> (raw)
In-Reply-To: <87y3c0xh44.fsf@mbork.pl> (Marcin Borkowski's message of "Mon, 17 Sep 2018 17:45:31 +0200")
>>> 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")))
next prev parent reply other threads:[~2018-09-17 23:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-17 8:08 Two problems with directory-local variables Marcin Borkowski
2018-09-17 9:28 ` Phil Sainty
2018-09-17 15:45 ` Marcin Borkowski
2018-09-17 23:15 ` Juri Linkov [this message]
2018-09-18 0:04 ` Phil Sainty
2018-09-18 0:19 ` Juri Linkov
2018-09-18 2:15 ` Stefan Monnier
2018-09-19 22:38 ` Juri Linkov
2018-09-20 1:42 ` Drew Adams
2018-09-20 20:59 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1njyav9.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=emacs-devel@gnu.org \
--cc=mbork@mbork.pl \
--cc=psainty@orcon.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).