From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Two problems with directory-local variables Date: Tue, 18 Sep 2018 12:04:44 +1200 Message-ID: <475f19d58094495c2a56d829bb7bbdd5@webmail.orcon.net.nz> References: <87a7ogzgul.fsf@mbork.pl> <1d2129643cecde529cb9b47e4e015c48@webmail.orcon.net.nz> <87y3c0xh44.fsf@mbork.pl> <87k1njyav9.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1537229056 25116 195.159.176.226 (18 Sep 2018 00:04:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2018 00:04:16 +0000 (UTC) User-Agent: Orcon Webmail Cc: emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 18 02:04:12 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 1g23Ux-0006QR-Sb for ged-emacs-devel@m.gmane.org; Tue, 18 Sep 2018 02:04:12 +0200 Original-Received: from localhost ([::1]:37822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g23X2-00034p-FF for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2018 20:06:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g23W2-000339-Vp for emacs-devel@gnu.org; Mon, 17 Sep 2018 20:05:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g23Vb-0000Md-Tk for emacs-devel@gnu.org; Mon, 17 Sep 2018 20:04:55 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:58468) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g23Vb-0000D4-Iv for emacs-devel@gnu.org; Mon, 17 Sep 2018 20:04:51 -0400 Original-Received: from [10.253.37.70] (port=37030 helo=webmail.orcon.net.nz) by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1g23VU-0002nB-7k; Tue, 18 Sep 2018 12:04:44 +1200 Original-Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Tue, 18 Sep 2018 12:04:44 +1200 In-Reply-To: <87k1njyav9.fsf@mail.linkov.net> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 60.234.4.44 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:229922 Archived-At: On 2018-09-18 11:15, Juri Linkov wrote: > When I tried [add-dir-local-variable] it correctly added > ((nil > (eval message "hello"))) On this note, while I don't use the commands myself, I've often wished that add-dir-local-variable would generate the dotted-pair syntax, because I've often seen confusion about the syntax of dir-locals arising from dotted vs non-dotted possibilities, and I feel strongly that the dotted syntax is the most readable for these files. i.e. To my mind, (eval message "hello") is liable to confuse people, whereas (eval . (message "hello")) is rather clear. Of course we wouldn't want this to end up in the file either: (eval . (message . ("hello" . nil))) I guess we'd need some code to only 'dot' the high level elements, but not the values. I don't suppose anything like that already exists? -Phil