From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Two problems with directory-local variables Date: Tue, 18 Sep 2018 02:15:06 +0300 Organization: LINKOV.NET Message-ID: <87k1njyav9.fsf@mail.linkov.net> References: <87a7ogzgul.fsf@mbork.pl> <1d2129643cecde529cb9b47e4e015c48@webmail.orcon.net.nz> <87y3c0xh44.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1537226038 20107 195.159.176.226 (17 Sep 2018 23:13:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2018 23:13:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: Phil Sainty , emacs-devel To: Marcin Borkowski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 18 01:13:54 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g22iH-000560-N7 for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2018 01:13:54 +0200 Original-Received: from localhost ([::1]:37721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g22kO-0000MQ-Aq for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2018 19:16:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g22jp-0000MK-BE for emacs-devel@gnu.org; Mon, 17 Sep 2018 19:15:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g22jl-0007qP-Cr for emacs-devel@gnu.org; Mon, 17 Sep 2018 19:15:29 -0400 Original-Received: from pop.dreamhost.com ([64.90.62.162]:35324 helo=pdx1-sub0-mail-a21.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g22jl-0007pw-53 for emacs-devel@gnu.org; Mon, 17 Sep 2018 19:15:25 -0400 Original-Received: from pdx1-sub0-mail-a21.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a21.g.dreamhost.com (Postfix) with ESMTP id DC9077F11B; Mon, 17 Sep 2018 16:15:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=linkov.net; bh=3RDtwr3Lgx/mqAZH3xssmlDI6/Q=; b= gFgWWeaUMDiuRTavgQ59EhATLNGuEVaksDgXNgusJ28Ip+z6S9HkuLHrtEluI4+d T0wDyt5ojnISNzIk9ghv+qpWgLtIkfniAaFn8r+yni8rH05jkZ/3laAjJV5y7aXz XSLKURNnsXUSQ/xPTYqUEiJD7K7oyJjt0JleBUV33gM= Original-Received: from localhost.linkov.net (m91-129-107-237.cust.tele2.ee [91.129.107.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a21.g.dreamhost.com (Postfix) with ESMTPSA id B74337E96A; Mon, 17 Sep 2018 16:15:22 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a21 X-DH-BACKEND: pdx1-sub0-mail-a21 In-Reply-To: <87y3c0xh44.fsf@mbork.pl> (Marcin Borkowski's message of "Mon, 17 Sep 2018 17:45:31 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 64.90.62.162 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229917 Archived-At: >>> 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")))