From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist Date: Fri, 14 Oct 2022 15:13:42 +0000 Message-ID: <87k052h1zt.fsf@posteo.net> References: <87sfjsgkl4.fsf@posteo.net> <865ygn4pno.fsf@mail.linkov.net> <87y1tiabq5.fsf@gnus.org> <87czauzhch.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29928"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58506@debbugs.gnu.org, Lars Ingebrigtsen , Juri Linkov , Stefan Kangas , Stefan Monnier To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 17:29:40 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojMd2-0007cL-10 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 17:29:40 +0200 Original-Received: from localhost ([::1]:37690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojMd1-00042X-1O for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 11:29:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojMNv-0003zY-5o for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 11:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39254) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojMNu-0007Wi-TY for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 11:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojMNu-0006au-O6 for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 11:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 15:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58506 X-GNU-PR-Package: emacs Original-Received: via spool by 58506-submit@debbugs.gnu.org id=B58506.166576043525317 (code B ref 58506); Fri, 14 Oct 2022 15:14:02 +0000 Original-Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 15:13:55 +0000 Original-Received: from localhost ([127.0.0.1]:38331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojMNn-0006aG-6V for submit@debbugs.gnu.org; Fri, 14 Oct 2022 11:13:55 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:34059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojMNl-0006a2-0c for 58506@debbugs.gnu.org; Fri, 14 Oct 2022 11:13:53 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D3B15240029 for <58506@debbugs.gnu.org>; Fri, 14 Oct 2022 17:13:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665760426; bh=radjWTiWdjGYy9SOzje3Ioez5NlD75I3VdwTYsslVo8=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=LrUs9BACCXUoT3NUdT/VycY0h6ONVOpA5YMnT9GlwXrs7T25p0OW/hv/sUDvuK2jG g/InippP3Od5bBMzCwNEC0MTjxsKYGIxn0QamXf7U+5GvQOZ1VSmulE8ih+vFLFdii gy1l1NkjyYweao1YQK2IJsTjXh44bn+KLCkgokGw2otOWKYCRoaO+YU/OqYKlNLS5R KSTTPydywrXKKbRhTSFYZp4nUD8oiRLK2rpM/kgs71yIK9kWZRu96uPOS+ilD3+AVF OFQH1UFJ4z9OlLp/L8RUkuxY2Bx/7fRit9uhfqV0LK1fCvzI8y+1LkhqreXtpuFpQi g0K4xMncWGFrA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MpqfG6S6dz9rxP; Fri, 14 Oct 2022 17:13:42 +0200 (CEST) In-Reply-To: <87czauzhch.fsf@gmail.com> (Robert Pluim's message of "Fri, 14 Oct 2022 15:04:46 +0200") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245456 Archived-At: Robert Pluim writes: >>>>>> On Fri, 14 Oct 2022 13:25:22 +0200, Lars Ingebrigtsen said: > > Lars> So if we introduce .dir-locals.eld, we should take the opportun= ity to > Lars> add a brand new, sensible, extensible syntax, too. > > We could use an almost syntax-less language with lots of structuring > parentheses (LOSP for short). And we=CA=BCd have to call the file > 'please-pwn-my-Emacs.el' > > Seriously, having files popping up safe-variable warnings is scary > enough already, do we really need to complicate things by adding > yet-another not-quite-lisp syntax? Is the support for `eval' in > .dir-locals.el not enough? What I would like to see if some kind of extensibility in the syntax. Perhaps using methods. I have often seen projects using `eval' just because the options they are setting are not trivial assignments, but conventional modifications like prepending an item to a list or setting a symbol property (check out the .dir-locals.el for Guix if you want to see a massive "Do you want to accept all these variables" prompt). > Robert