GNU logs - #58506, boring messages


Message sent to juri@HIDDEN, philipk@HIDDEN, monnier@HIDDEN, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Stefan Kangas <stefankangas@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: juri@HIDDEN, philipk@HIDDEN, monnier@HIDDEN, bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 09:23:01 +0000
Resent-Message-ID: <handler.58506.B.16657393488335 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 58506 <at> debbugs.gnu.org
Cc: Juri Linkov <juri@HIDDEN>, Philip Kaludercic <philipk@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
X-Debbugs-Original-Xcc: Juri Linkov <juri@HIDDEN>, Philip Kaludercic <philipk@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.16657393488335
          (code B ref -1); Fri, 14 Oct 2022 09:23:01 +0000
Received: (at submit) by debbugs.gnu.org; 14 Oct 2022 09:22:28 +0000
Received: from localhost ([127.0.0.1]:35777 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojGtg-0002AM-9i
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 05:22:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:53660)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1ojGtf-0002AF-4r
 for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 05:22:27 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:45186)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1ojGte-0006Fb-UF
 for bug-gnu-emacs@HIDDEN; Fri, 14 Oct 2022 05:22:26 -0400
Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]:45882)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <stefankangas@HIDDEN>)
 id 1ojGtd-0005sI-C3
 for bug-gnu-emacs@HIDDEN; Fri, 14 Oct 2022 05:22:26 -0400
Received: by mail-ot1-x334.google.com with SMTP id
 a16-20020a056830101000b006619dba7fd4so1510383otp.12
 for <bug-gnu-emacs@HIDDEN>; Fri, 14 Oct 2022 02:22:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:subject:message-id:date:mime-version:references:in-reply-to:from
 :from:to:cc:subject:date:message-id:reply-to;
 bh=JOp0CimjZJu6geIwDj9LqmFR04uMBqz99fbhdPJV0CI=;
 b=aytUzkIjQAQJkJH52aAWVLAslB1W7xj8SwD4UCXBdjiB5UWKoa7EbbA1oJLWe3+4oV
 nRe0NB0oobEzZfJzvuPD9H+tKdgPURQsvz5yC2H0jg+HKHxl0OGXZx2DnQ8HUkxaht6x
 K7kvGr3vw7Eda8NO9eHtJSB/P81GkLDWulQXueswMNK0q/Abd7viRp7+OMvUFfqUv6Bt
 tqFPDkSNLGfyQRx8hzrc0bjNKPejRVw/Ydep0Cu7xmi+COw6m24Ph7zH8q1+dpJ2eJWJ
 lHnWq/tzENUWt3/RPa8dOe2ANHxyGMPe+lcTBDtotZZJnM5BfG6S98N1EeQ8GgmB7O9K
 9htw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:mime-version:references:in-reply-to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=JOp0CimjZJu6geIwDj9LqmFR04uMBqz99fbhdPJV0CI=;
 b=dWMzV1dxLp3G+MoNgUNDA9Sy4TVmbwv38TV748BJ9JT+WLR+97p/JVr2FOda8lwD48
 Byd52Pg68rS5R06kFQU5bKToTeq6GCC8fbGUohetdUzyv2JqTSZ/FQlGshFyPEbA3C2z
 d5USkwo+2kpz1NxoeV6Osn3Q18KF2n+HkPy9NaePQdBc/A1nAzcRRmSVkgWuQ3/La62R
 ry18sxnm9Qd8RJTwgYpYoAfXspeGthLC0iMZ0Fdng39QZVEWVSupTFdH5DWEvM2IkXBM
 3+a/KpbTDzPP2Z2UHG9pHQ8ToQvcIIPwFH48dUYwputzsphhmrNH/HrIcO3lRSSfPujB
 6SUA==
X-Gm-Message-State: ACrzQf0wKBo9GvspG2zEJ+8M/68kURWIuypQMDR8VGE6pfAiLpLYtuSL
 Er2XOfCZhck4AO71HtKC9aCk3vlgWC+PF+CG6Y8NFrJi
X-Google-Smtp-Source: AMsMyM5buofMulxopj+eAGJOGWFSdmrIbeSdAx9w7cdMeaiuGxXejS1Cv+BLh3NGgDt9Qf8MevkLS7UJUrbP2xZJxtc=
X-Received: by 2002:a05:6830:3c1:b0:637:28be:7920 with SMTP id
 p1-20020a05683003c100b0063728be7920mr1927128otc.105.1665739343515; Fri, 14
 Oct 2022 02:22:23 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 14 Oct 2022 11:22:23 +0200
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <865ygn4pno.fsf@HIDDEN>
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
X-Hashcash: 1:20:221013:bug-gnu-emacs@HIDDEN::9uuDwDPlm5yhyucc:AMSa
MIME-Version: 1.0
Date: Fri, 14 Oct 2022 11:22:23 +0200
Message-ID: <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::334;
 envelope-from=stefankangas@HIDDEN; helo=mail-ot1-x334.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Severity: wishlist

[Spun out from Bug#58486.]

Juri Linkov <juri@HIDDEN> writes:

> It's already handled by auto-mode-alist:
>
>   (defvar auto-mode-alist
>        ...
>        ;; .dir-locals.el is not really Elisp.  Could use the
>        ;; `dir-locals-file' constant if it weren't defined below.
>        ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode)

It's nice if we can use the "*.eld" extension for files that are not
supposed to be executed.  But it's hard to just change that outright, as
a file ".dir-locals.eld" won't be used on old versions of Emacs.

So how about doing something like the below, as a future compatibility
patch?  Then, in some undefined future version, we can consider creating
".dir-locals.eld" files by default, instead.

diff --git a/lisp/files.el b/lisp/files.el
index 94d110f0b7..bfd1e5e8e1 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4403,11 +4403,14 @@ dir-locals--all-files
                                         (dosified-file-name dir-locals-file)
                                       dir-locals-file)
                                     directory))
-           (file-2 (when (string-match "\\.el\\'" file-1)
+           (is-el (string-match (rx ".el" eos) file-1))
+           (file-2 (when is-el
                      (replace-match "-2.el" t nil file-1)))
           (out nil))
       ;; The order here is important.
-      (dolist (f (list file-2 file-1))
+      ;; Support *.eld files, too.
+      (dolist (f (list (and is-el (concat file-2 "d")) file-2
+                       (and is-el (concat file-1 "d")) file-1))
         (when (and f
                    (file-readable-p f)
                    ;; FIXME: Aren't file-regular-p and




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Stefan Kangas <stefankangas@HIDDEN>
Subject: bug#58506: Acknowledgement (Use ".dir-locals.eld" and
 ".dir-locals-2.eld" when they exist)
Message-ID: <handler.58506.B.16657393488335.ack <at> debbugs.gnu.org>
References: <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
X-Gnu-PR-Message: ack 58506
X-Gnu-PR-Package: emacs
Reply-To: 58506 <at> debbugs.gnu.org
Date: Fri, 14 Oct 2022 09:23:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

As you requested using X-Debbugs-CC, your message was also forwarded to
  Juri Linkov <juri@HIDDEN>, Philip Kaludercic <philipk@HIDDEN>, St=
efan Monnier <monnier@HIDDEN>
(after having been given a bug report number, if it did not have one).

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 58506 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
58506: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58506
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 10:39:03 +0000
Resent-Message-ID: <handler.58506.B58506.166574393017281 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Kangas <stefankangas@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN, juri@HIDDEN
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166574393017281
          (code B ref 58506); Fri, 14 Oct 2022 10:39:03 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 10:38:50 +0000
Received: from localhost ([127.0.0.1]:35850 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojI5a-0004Uf-6J
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 06:38:50 -0400
Received: from eggs.gnu.org ([209.51.188.92]:40418)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1ojI5Y-0004UB-6B
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 06:38:48 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:54578)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ojI5R-00018i-K4; Fri, 14 Oct 2022 06:38:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=jTiWjjcpDt7mzD+dCARrp59dIeYaPPZvJ6kZcNmOrcg=; b=JwnJc4dhJKFx
 eAD+VM9LYc0ZM2yS3/RV/xL1yEMHdaLwDC7ODn1rfghQEkWN/q64SaaLtU2kqGRNc2VX8xQI50ZKF
 5clMIfrSuRyY14Upzij77IUdEgIN2e9WlSDvI6ismPQgxWLtQHGacgjZbe3b6AkZ23dY3APLg6rTE
 LyQgKdTvwrH+umX3BLXkxWD71hTv3SIGG2rcIWsV5tdJKhpwBaxiRzzGeRSg3dvSFYKK7KMmYtZjE
 huNqWZb9ISTF7r3Iv6TpW7nXWwnPzJOjRf2ljYqNFRHWbaHYgL2j7OpGypiHYIknDFZ1f7lLRKUIV
 g0RMqMhl41bBX5hIvaa9Iw==;
Received: from [87.69.77.57] (port=3973 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1ojI5Q-0006Vy-VT; Fri, 14 Oct 2022 06:38:41 -0400
Date: Fri, 14 Oct 2022 13:38:27 +0300
Message-Id: <83pmeu8zbw.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 (message from Stefan Kangas on Fri, 14 Oct 2022 11:22:23 +0200)
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: Juri Linkov <juri@HIDDEN>, Philip Kaludercic <philipk@HIDDEN>,
>  Stefan Monnier <monnier@HIDDEN>
> From: Stefan Kangas <stefankangas@HIDDEN>
> Date: Fri, 14 Oct 2022 11:22:23 +0200
> 
> Severity: wishlist
> 
> [Spun out from Bug#58486.]
> 
> Juri Linkov <juri@HIDDEN> writes:
> 
> > It's already handled by auto-mode-alist:
> >
> >   (defvar auto-mode-alist
> >        ...
> >        ;; .dir-locals.el is not really Elisp.  Could use the
> >        ;; `dir-locals-file' constant if it weren't defined below.
> >        ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode)
> 
> It's nice if we can use the "*.eld" extension for files that are not
> supposed to be executed.  But it's hard to just change that outright, as
> a file ".dir-locals.eld" won't be used on old versions of Emacs.
> 
> So how about doing something like the below, as a future compatibility
> patch?  Then, in some undefined future version, we can consider creating
> ".dir-locals.eld" files by default, instead.
> 
> diff --git a/lisp/files.el b/lisp/files.el
> index 94d110f0b7..bfd1e5e8e1 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -4403,11 +4403,14 @@ dir-locals--all-files
>                                          (dosified-file-name dir-locals-file)
>                                        dir-locals-file)
>                                      directory))
> -           (file-2 (when (string-match "\\.el\\'" file-1)
> +           (is-el (string-match (rx ".el" eos) file-1))
> +           (file-2 (when is-el
>                       (replace-match "-2.el" t nil file-1)))
>            (out nil))
>        ;; The order here is important.
> -      (dolist (f (list file-2 file-1))
> +      ;; Support *.eld files, too.
> +      (dolist (f (list (and is-el (concat file-2 "d")) file-2
> +                       (and is-el (concat file-1 "d")) file-1))

This conses 2 strings, which is a pity, because this code is called a
lot.  Can this be done without so much consing for such a simple job?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 11:26:01 +0000
Resent-Message-ID: <handler.58506.B58506.166574673922634 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Kangas <stefankangas@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Stefan Monnier <monnier@HIDDEN>, Juri Linkov <juri@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166574673922634
          (code B ref 58506); Fri, 14 Oct 2022 11:26:01 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 11:25:39 +0000
Received: from localhost ([127.0.0.1]:35951 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojIos-0005t0-UH
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 07:25:39 -0400
Received: from quimby.gnus.org ([95.216.78.240]:45338)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ojIor-0005sk-6K
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 07:25:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=b4Ng5EwhOL9wKlkMtRt+Bm/WlhlU9BzX/luA4WpkT50=; b=LJ/w0C4uThkNGZWszeaZqUh6Tw
 2cJZG8iQzdY7x7tEK6eoRsK414gfeVO1uwgPxZTHtVtsNIi1SpgfUVg73X6cTiiP0ktSDiPJIQT34
 64jLpN4Sm703kLNUG9a6/WHm5oc4Qaf158QRczYAzK2UGLgBjxWc4KZ9EvyHUHNciS9Y=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ojIoe-0005R7-R8; Fri, 14 Oct 2022 13:25:26 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 (Stefan Kangas's message of "Fri, 14 Oct 2022 11:22:23 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
X-Now-Playing: Afrorack's _L'Esprit de Nyege 2020_: "Last Modular"
Date: Fri, 14 Oct 2022 13:25:22 +0200
Message-ID: <87y1tiabq5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Stefan Kangas <stefankangas@HIDDEN> writes: > So how about
 doing something like the below, as a future compatibility > patch? Then,
 in some undefined future version, we can consider creating > ".dir-locals.eld"
 files by default, instead. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Stefan Kangas <stefankangas@HIDDEN> writes:

> So how about doing something like the below, as a future compatibility
> patch?  Then, in some undefined future version, we can consider creating
> ".dir-locals.eld" files by default, instead.

It sort of makes sense to me, but if we're doing a name change, I'd
rather make it a functional change, too.

It's been pointed out many times that the .dir-locals.el file format is
bad -- it's not extensible, and many things have been proposed for extra
functionality that's impossible to add today.

(For instance -- variables set before the major mode happens, and adding
to list variables.)

So if we introduce .dir-locals.eld, we should take the opportunity to
add a brand new, sensible, extensible syntax, too.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Stefan Kangas <stefankangas@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 12:37:02 +0000
Resent-Message-ID: <handler.58506.B58506.16657509696550 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Stefan Monnier <monnier@HIDDEN>, Juri Linkov <juri@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.16657509696550
          (code B ref 58506); Fri, 14 Oct 2022 12:37:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 12:36:09 +0000
Received: from localhost ([127.0.0.1]:36134 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojJv6-0001hZ-Rp
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 08:36:09 -0400
Received: from mail-oo1-f43.google.com ([209.85.161.43]:34721)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1ojJv4-0001h0-O8
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 08:36:07 -0400
Received: by mail-oo1-f43.google.com with SMTP id
 c17-20020a4aa4d1000000b0047653e7c5f3so1700896oom.1
 for <58506 <at> debbugs.gnu.org>; Fri, 14 Oct 2022 05:36:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=KgC3ICqd4EWEV3AomBdPEO9BJ3VzNS9pqg3dF6K24Ag=;
 b=W4PoI+nswmZ12iXS7VZcIFPwNrKnlnQ73w8hTb9CDEpi/u8xd/mogFe77zwErvj948
 lnvUgJaH8tEcyPHpFT6KCPHhSW0ETGPLPNzZvLguBp15RCRRdY6aVVI7oO9NIEZHNWIb
 pCgjXmSbWETG86v4wlXv2e0ZybyQUft2ngZA7cHb85RuATYEMy+I1tKrera/5Vcm5h7E
 LXnjNGx5zkieDgxlBXlSGwtq3+nAdj17gWF2KPm6TrRiH+Dw9gAoG+dLe1mkGeC6oA2E
 vZm4NaWb9EsCSzx5sCf+D/dv3rwLXgw0gxv6A6/+pgA4gpbcA/jQos3EvKq4o2AalXwC
 UBsA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=KgC3ICqd4EWEV3AomBdPEO9BJ3VzNS9pqg3dF6K24Ag=;
 b=EHYXpeyYIEf6dyWQ/vGi48Is05sLXtZKmkumqCTiGQhNYXI9v3QDrFlKbxVFRw+yTs
 4rno0J8NoQfJdaiu5e+i+g+JEAi+vcdaeW0DkREiBnDTSPh+VVHi4RRWp+nNaOPihfIN
 c/1E/ittXHjCxNSf7JTI8nEp4Ny7xa8chEQ+ys8F37RY6K3CP6txP4/aihuGumLdmTKu
 VMmmPmFtChjQlwL11WDJZ/61jvl96diA0FgRuUeNlLRmqWebdm1Z+j0PIDGC5D5kTa8L
 Yi9OCGVLmde36ahst+aB8B9HZrcm3hXJvXrTtVT+T/1a+MlxzXwqH/9tI1ioeGeqbRc8
 2Xfg==
X-Gm-Message-State: ACrzQf0cApvSpvv6zj7UC5sSVSCc/lLcowSrJUx7rsgrXUGOtnzkCwQ7
 aCZ4SO/nbHmx/G3bLn+cPwDiJvVoUfU9agfW2dc=
X-Google-Smtp-Source: AMsMyM7vOfpn6LwOH9cKcG4fhKCWuqxCUrGcIBSr8iceeCJZnIHwciI5RzeRp2/EkmhzT7wQL605s7os3+CgRqfKkYc=
X-Received: by 2002:a05:6820:1746:b0:47f:926a:286d with SMTP id
 bf6-20020a056820174600b0047f926a286dmr1828477oob.5.1665750961010; Fri, 14 Oct
 2022 05:36:01 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 14 Oct 2022 07:36:00 -0500
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <87y1tiabq5.fsf@HIDDEN>
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN>
X-Hashcash: 1:20:221014:philipk@HIDDEN::zV+N6jABHhVR9rKV:QP/P
MIME-Version: 1.0
Date: Fri, 14 Oct 2022 07:36:00 -0500
Message-ID: <CADwFkmnuvrKe4EeVjJ8OmndpkHdCyurn=Dyz_jzrCZ2yR_OPdQ@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> So if we introduce .dir-locals.eld, we should take the opportunity to
> add a brand new, sensible, extensible syntax, too.

That makes sense.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Stefan Kangas <stefankangas@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 12:37:02 +0000
Resent-Message-ID: <handler.58506.B58506.16657509816591 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, philipk@HIDDEN, monnier@HIDDEN, juri@HIDDEN
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.16657509816591
          (code B ref 58506); Fri, 14 Oct 2022 12:37:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 12:36:21 +0000
Received: from localhost ([127.0.0.1]:36140 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojJvI-0001iF-Jc
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 08:36:21 -0400
Received: from mail-ot1-f41.google.com ([209.85.210.41]:43728)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <stefankangas@HIDDEN>) id 1ojJvG-0001hm-Rk
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 08:36:19 -0400
Received: by mail-ot1-f41.google.com with SMTP id
 t4-20020a9d7f84000000b00661c3d864f9so1754310otp.10
 for <58506 <at> debbugs.gnu.org>; Fri, 14 Oct 2022 05:36:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=xsYldSuuSpMBxqqodzBi9hXgBGmtNgrfA3MUvmbAqK8=;
 b=XRcdQB7kUW0Z+lPhh8fpDyhIMjCoCkJOn31TpEO+mcHdyjI8sTVJ6l9BVnj+jfblri
 sLgyPw7rRSH8XVWSreF/OulDAd/ldmDjDSRtNJVGMOpMHArhIMdtTuvuau9eF16uFEUh
 0SPgfyQO40IPv4d+0BBR+FpPjSNuDCnLGYePEGPYXj7ct+Rd3Wa33y05etb8bwVBPPxa
 fVAYwcigevh8iac7E33rnNFWvlHUU9xQuOSrbV22pdeD4mHVlRt+YDiJCN7QhDvFbgXV
 we2gP6pqyqjakUq2cMHou3MsRMUORkSL3iCRQjEmQfssa0DnHpxTDXzb4tBgKO2L2NkK
 +iiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=cc:to:subject:message-id:date:mime-version:references:in-reply-to
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=xsYldSuuSpMBxqqodzBi9hXgBGmtNgrfA3MUvmbAqK8=;
 b=B6S/MX9exNER22QLLs9MAH8lDRjq6oq6Kma0qu/BiY2+5vuvy0yPdkFDkcLgmZj+CO
 RA/aNxC/oQ5xFAy6TnJ0eIG53qGq0wxN+g5d+69tnqkFo5lbPJ9CAj9wpa6B+GtHlRWF
 iz+jsMr3hAPYKKyowVQX1fhOLyn6q55eEVpy8Cp6bGcI4KcXslL2uRyC81VtvLSVogEs
 xc524sr1X62pUHYKPpFu5s3iFGXLf96xE2sDcNh02Ct3KPTu/Kuel8pIxp4xQXzQf/Yw
 758oERoB9g3s+IH47cp8Y4RozyakONOHS1cBBfqLfuMiG69MtK2/cLUffhAGk4XyOhQR
 hP+Q==
X-Gm-Message-State: ACrzQf2WyvLj3c/mhcaSClAzIh0z/dTTL174oTu+2QxRburg4kBequsL
 DT6p9mbhrS5R2P+pQNWpDliGN/T8HxxDM+k5huk=
X-Google-Smtp-Source: AMsMyM4SVslamq5n5HngCxOGAuvzaeiEkgKxSMLxG/5oYlLiixiqJtqwJikMoRQEexERVMb/BkQmCEaTelmCSiA77xM=
X-Received: by 2002:a05:6830:3c1:b0:637:28be:7920 with SMTP id
 p1-20020a05683003c100b0063728be7920mr2258907otc.105.1665750973383; Fri, 14
 Oct 2022 05:36:13 -0700 (PDT)
Received: from 753933720722 named unknown by gmailapi.google.com with
 HTTPREST; Fri, 14 Oct 2022 07:36:13 -0500
From: Stefan Kangas <stefankangas@HIDDEN>
In-Reply-To: <83pmeu8zbw.fsf@HIDDEN>
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <83pmeu8zbw.fsf@HIDDEN>
X-Hashcash: 1:20:221014:monnier@HIDDEN::P7AtXR3othPRQkU4:4FW2
MIME-Version: 1.0
Date: Fri, 14 Oct 2022 07:36:12 -0500
Message-ID: <CADwFkm=GR45Ji2WLFsDVW+Z-+Qg1NYsDjz36Qd4nK0-tcjB89Q@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Eli Zaretskii <eliz@HIDDEN> writes:

>> diff --git a/lisp/files.el b/lisp/files.el
>> index 94d110f0b7..bfd1e5e8e1 100644
>> --- a/lisp/files.el
>> +++ b/lisp/files.el
>> @@ -4403,11 +4403,14 @@ dir-locals--all-files
>>                                          (dosified-file-name dir-locals-file)
>>                                        dir-locals-file)
>>                                      directory))
>> -           (file-2 (when (string-match "\\.el\\'" file-1)
>> +           (is-el (string-match (rx ".el" eos) file-1))
>> +           (file-2 (when is-el
>>                       (replace-match "-2.el" t nil file-1)))
>>            (out nil))
>>        ;; The order here is important.
>> -      (dolist (f (list file-2 file-1))
>> +      ;; Support *.eld files, too.
>> +      (dolist (f (list (and is-el (concat file-2 "d")) file-2
>> +                       (and is-el (concat file-1 "d")) file-1))
>
> This conses 2 strings, which is a pity, because this code is called a
> lot.  Can this be done without so much consing for such a simple job?

Actually, 2 strings are already consed up, so this brings it up to 4.

How about something like this instead?  It brings us down to 0, as long
as users don't mess with the value of `dir-locals-file'.  Maybe it's
even worth installing even if we don't add support for *.eld?

diff --git a/lisp/files.el b/lisp/files.el
index 94d110f0b7..dedf9c4848 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4393,27 +4393,34 @@ dir-locals-file

 See Info node `(elisp)Directory Local Variables' for details.")

+(defvar dir-locals--file-last nil)
+(defvar dir-locals--files nil)
 (defun dir-locals--all-files (directory)
   "Return a list of all readable dir-locals files in DIRECTORY.
 The returned list is sorted by increasing priority.  That is,
 values specified in the last file should take precedence over
 those in the first."
   (when (file-readable-p directory)
-    (let* ((file-1 (expand-file-name (if (eq system-type 'ms-dos)
-                                        (dosified-file-name dir-locals-file)
-                                      dir-locals-file)
-                                    directory))
-           (file-2 (when (string-match "\\.el\\'" file-1)
-                     (replace-match "-2.el" t nil file-1)))
-          (out nil))
-      ;; The order here is important.
-      (dolist (f (list file-2 file-1))
-        (when (and f
-                   (file-readable-p f)
-                   ;; FIXME: Aren't file-regular-p and
-                   ;; file-directory-p mutually exclusive?
-                   (file-regular-p f)
-                   (not (file-directory-p f)))
+    ;; Users might be misguidedly messing with the `dir-locals-file'
+    ;; variable, as ELisp doesn't bother enforcing defconst.
+    (unless (equal dir-locals-file dir-locals--file-last)
+      ;; Caching this avoids consing.
+      (setq dir-locals--files
+            (delq nil
+                  (let* ((file-1 (if (eq system-type 'ms-dos)
+                                     (dosified-file-name dir-locals-file)
+                                   dir-locals-file))
+                         (is-el (string-match "\\.el\\'" file-1))
+                         (file-2 (when is-el
+                                   (replace-match "-2.el" t nil file-1))))
+                    ;; The order here is important.
+                    ;; Support *.eld files, too.
+                    (list file-2 (and is-el (concat file-2 "d"))
+                          file-1 (and is-el (concat file-1 "d")))))))
+    (let ((default-directory directory) out)
+      (dolist (f dir-locals--files)
+        (when (and (file-readable-p f)
+                   (file-regular-p f))
           (push f out)))
       out)))




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 13:05:02 +0000
Resent-Message-ID: <handler.58506.B58506.16657526989757 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.16657526989757
          (code B ref 58506); Fri, 14 Oct 2022 13:05:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 13:04:58 +0000
Received: from localhost ([127.0.0.1]:36198 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojKN0-0002XI-3p
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:04:58 -0400
Received: from mail-wr1-f41.google.com ([209.85.221.41]:33607)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1ojKMx-0002X4-O5
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:04:56 -0400
Received: by mail-wr1-f41.google.com with SMTP id a3so7556255wrt.0
 for <58506 <at> debbugs.gnu.org>; Fri, 14 Oct 2022 06:04:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=zo7KIuPdJMIKsOpC+Qlu8f9xvP+W8CQznzvPJwLvt1k=;
 b=BkEWdi2kPJMGBa1koFP1VfI9IzuEkxo0WuZaO74vI8515xP8jcfJYsPd6i8Linv1LE
 al91eooOkBsceSAoEUVDvixngcjeOjGo8xm3JWhzRs3//s8vfu+48HqsJrgr79FZLD5o
 qyPS7GiIrR03Gm6y6hrbNTWTJV7Xl7YihenzoAqp40vFdlf6Q6PQursuOW07WbzLsEm6
 iN/zXsnyLwh88RXLAibeA0B7wprQPuQY9wiNlPhb4/KBVPNqAQCJVgLwebcgCJQW/V2h
 okMa1k7Fy8SobiWiNrQI5e2x88ZcNQPOvm+ea6QJqYwlu7kVxVZmpsZaadbP6GMOrlPs
 e8xA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=zo7KIuPdJMIKsOpC+Qlu8f9xvP+W8CQznzvPJwLvt1k=;
 b=yYrcpyB90SXKWGCRB3ot7sPtIUO4IlG6rTfo9+WS3zq7gCvqy/UQphHtAdf7iQNmXN
 4Oa+5hsjKbT62TRhJdI5X+D6hSazu8JfFG9GIsZB3he65qz1Z3PGJM2x7dBzyOUKtYJy
 OMqT8BsS9tB6yvdIfLsbcXJwUqDVaa53EQmO0ufaUnbgmq71irob4OtNE5r2vrBn/mAn
 Q7gXP50cx+eWVmHlqTwc+qkv/xBDnUR9O3AKFxtWregN9doHR+M5vIOeXH/itJ1W+hdu
 VIY0WUn+9E/0WZwxXaFkijNI3DFKA4oHRVyyqWkaNh3RVFG4wUMUGL3MvLFZWHWuiWhS
 en/Q==
X-Gm-Message-State: ACrzQf10sOsHZu0d/3y1OxJ2Dg/5QaFtEdWvsQ2SkauWtRqXhmAhHNLw
 GfBlY9P2TN7EJT2U2bY5pHc=
X-Google-Smtp-Source: AMsMyM6OQKya9w+5gJKwAg+xUPd0/z8aRvZsh2BAPnOLtmR3mx6KHSGVgGQDfZp667WLi/Yf+FOhaQ==
X-Received: by 2002:a5d:62d2:0:b0:22e:4a7:1ab6 with SMTP id
 o18-20020a5d62d2000000b0022e04a71ab6mr3422749wrv.334.1665752688816; 
 Fri, 14 Oct 2022 06:04:48 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 i17-20020a5d6311000000b0022e035a4e93sm1808150wru.87.2022.10.14.06.04.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 14 Oct 2022 06:04:47 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87y1tiabq5.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 14 Oct 2022 13:25:22 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN>
Date: Fri, 14 Oct 2022 15:04:46 +0200
Message-ID: <87czauzhch.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Fri, 14 Oct 2022 13:25:22 +0200, Lars Ingebrigtsen <larsi@HIDDEN=
> said:

    Lars> So if we introduce .dir-locals.eld, we should take the opportunit=
y 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?

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 13:11:02 +0000
Resent-Message-ID: <handler.58506.B58506.166575302010366 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166575302010366
          (code B ref 58506); Fri, 14 Oct 2022 13:11:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 13:10:20 +0000
Received: from localhost ([127.0.0.1]:36215 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojKSC-0002h7-1F
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:10:20 -0400
Received: from quimby.gnus.org ([95.216.78.240]:46558)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ojKSA-0002gr-8x
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:10:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=fxLnEbwrmm60U3CFG3exoYtlercDHtYB3gn4I+fqT4Q=; b=jdoqzUZn267wDzc0hjTdyvdNyC
 wKorDleQ1yWKYHhMM8TraUWYNyxz6pFPSGsPkGghwHoEZcnSuDEGHETBOzoTpUrht8m9zZU4UE/nY
 w72Yiu3I6ylRNbQZfLfEAQUKwjA0NCq98DqyNwu0xwQ7RCiat2u5mF5imQhedp8Ef83I=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ojKRy-0006BY-SU; Fri, 14 Oct 2022 15:10:08 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87czauzhch.fsf@HIDDEN> (Robert Pluim's message of "Fri, 14
 Oct 2022 15:04:46 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWHX0hULyM/KiX/
 //9fL2cNAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKDgsSKZC1OvMAAAHESURBVCjPRZFNi5MxEMen
 sivsbYU+4vbuwX6KIj4Fe9otm2DmpmyCM59CRBfsaZ/SBJNbpRM28ylND+LcfmTm/0IA/s8MzONm
 nM1nZ7iAITlrvM0PNwPCUMg8+Rgnf8uwcGQmN6Xt7Z3C8I5k8my3Zl3gta1fxePaxssN3CSKzafk
 4p2FNyEcZDABx3kCw07MwihfzRFqRrd0vtDVYIHEOjbE7t5byPRwcsao+yQdrDSDVVO87JDijZ7n
 0G9aOQwrMNpyf2kmv1wB6KnYDm9zWcEL1Zgs1LCPH/BYxEeEFEP8qR3QFhDTbNKqz2osPPv25aws
 3BNEz6EQa0XCbkoa6VWpFBCapSptpjqGLsCjNr1m3mq/kaTarlGOaLtPZG23qNLjiFJRPW7USYBW
 nQh3eKQEUjf5sDyOumva11B+L08jIyNEJfq1fPKMFkEKmh8A5zwLUKz4DYbu5RYwZSLu4oq8hgmR
 XGu12B6nN9Srmu9abAtoEgUrOefdFvQjH4P6EvJ9gobGf871e2oX56CJQ+Y9y/o9TFR53cpeZAwQ
 T5HSWPY72fRfyNnI2iZWDJAbpt42yAEZel2XQkB3jwh/dKf/5i+i6AE30+DuCQAAACV0RVh0ZGF0
 ZTpjcmVhdGUAMjAyMi0xMC0xNFQxMToxODo0MSswMDowMKTBsXkAAAAldEVYdGRhdGU6bW9kaWZ5
 ADIwMjItMTAtMTRUMTE6MTg6NDErMDA6MDDVnAnFAAAAAElFTkSuQmCC
X-Now-Playing: Catudiosis's _L'Esprit de Nyege 2020_: "Kakoze"
Date: Fri, 14 Oct 2022 15:10:04 +0200
Message-ID: <87a65y8sb7.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Robert Pluim <rpluim@HIDDEN> writes: > 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' i [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Robert Pluim <rpluim@HIDDEN> writes:

> 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?

It's not -- there's a bunch of bug reports around these issues
*handwaves at debbugs*.






Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 13:24:01 +0000
Resent-Message-ID: <handler.58506.B58506.166575382611770 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166575382611770
          (code B ref 58506); Fri, 14 Oct 2022 13:24:01 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 13:23:46 +0000
Received: from localhost ([127.0.0.1]:36232 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojKfC-00033j-EL
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:23:46 -0400
Received: from mail-wr1-f41.google.com ([209.85.221.41]:35481)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1ojKfA-00033V-Ru
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:23:45 -0400
Received: by mail-wr1-f41.google.com with SMTP id u10so7575032wrq.2
 for <58506 <at> debbugs.gnu.org>; Fri, 14 Oct 2022 06:23:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=FgenDpGAPsXdFy+nY4LceqQjpUNAsZNJvjCF/+rcZf0=;
 b=MA7m4uRkNT2r2ZcWuxH4WiH5jvUfIdCasOpdn7xnqvp+OzFYqXL8hR8IXmJzVg2svy
 ILuIhhH5kgcvlpUryuaFxKEw7P6ot1m8rLFAC77q1fax7zrpldzbT3c6pOU/lwjC2HzV
 hYZpGCgS+Nkv0GBcT6O2apn5dAnPlswfL1u4mQeQRXU7ecz+uw4jU3wi8I1U/VBkxvtF
 Q2gYtvdxb8wpvEyWh5AwOSSZN3PVp2YLM6XmjM1twsj/pUYpSaF2EUEOPzdZhbDnKryB
 YihdEJyFendEova63nr9Xx79tFWMmVrStJOukFMc0+l82Osv+Km712wLuP6cs9BZjDCa
 09Aw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=FgenDpGAPsXdFy+nY4LceqQjpUNAsZNJvjCF/+rcZf0=;
 b=B4uqvLrGO/uYyf5odRy27ZNTvLN30Vt3dWS6B5lMCeJX1ESG2I7+u9rPKV9BqFW1uL
 8yrq8aM8XYHaOs2UqZZXQHICILSPUI+Y7T5r9Ep/EvM4M3JYQLtu/Sgle4yqJDIZFnly
 VSIxZCLtXZqaD1CHZU+FIjVj5YFJHTggO+2RFxcn9th4UOGsSlRiuZQ4RacR/Mlvkkc0
 LBb0zhpcp8d/Er+WxuZOR14O6mIXHX762xKWLnPqVxn11XoX3zx+nII+mPshM4J5pmry
 jI1fskYKW22qIw+1236RbTYywhWp+aFZ6Si4xoaz5D+Ha4udqdGYyH2Cs7wrhqE3YTt1
 6NMg==
X-Gm-Message-State: ACrzQf1Xt536PRNk6fOv/4ENpWLXoJ0zen+44IjQc2hLcyVtC76Fpe9t
 VMz5mku92BANttM7KVHYp7I=
X-Google-Smtp-Source: AMsMyM76K/s87wRLBq97lm+dNdWSG7IswOJAvOvzPRFe8IGPSNsl231TFN8qAFL+6rUBB9G0zTY98A==
X-Received: by 2002:a05:6000:18aa:b0:22e:60ef:9c1 with SMTP id
 b10-20020a05600018aa00b0022e60ef09c1mr3331646wri.108.1665753818672; 
 Fri, 14 Oct 2022 06:23:38 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 o39-20020a05600c512700b003b4ff30e566sm14242400wms.3.2022.10.14.06.23.37
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 14 Oct 2022 06:23:37 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87a65y8sb7.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 14 Oct 2022 15:10:04 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
 <87a65y8sb7.fsf@HIDDEN>
Date: Fri, 14 Oct 2022 15:23:37 +0200
Message-ID: <87zgdyy1wm.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Fri, 14 Oct 2022 15:10:04 +0200, Lars Ingebrigtsen <larsi@HIDDEN=
> said:

    Lars> Robert Pluim <rpluim@HIDDEN> writes:
    >> 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?

    Lars> It's not -- there's a bunch of bug reports around these issues
    Lars> *handwaves at debbugs*.

My debbugs-gnu-foo must be too weak: I can only find two, neither of
which look like they=CA=BCd be fixed by changing the syntax accepted by
.dir-locals.el

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 13:30:02 +0000
Resent-Message-ID: <handler.58506.B58506.166575419612325 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166575419612325
          (code B ref 58506); Fri, 14 Oct 2022 13:30:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 13:29:56 +0000
Received: from localhost ([127.0.0.1]:36239 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojKl7-0003Cg-6Q
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:29:56 -0400
Received: from quimby.gnus.org ([95.216.78.240]:46710)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ojKl4-0003CR-Rg
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:29:51 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=kIqjN0I7BLLDNFNHsCxsNd+L1lSFVDoCSkGbhwx+nhM=; b=RklO1ZwLI+hq3GxIETSfHlnbQV
 /X/R3Hq0+sRrqvlZr8QTBCGtQTe/Z/vm5ZsUDX55kLzEJHoqdhtOKAa8gXrrnpLCtHVqikG7N12OR
 UGfq8BMrFK+3UIrmVyOyOFvpTt/QfSfCkF/4XM8sPvkgJboy3sDb/8DFpan/Mn6rzH54=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ojKks-0006Ji-OW; Fri, 14 Oct 2022 15:29:40 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87zgdyy1wm.fsf@HIDDEN> (Robert Pluim's message of "Fri, 14
 Oct 2022 15:23:37 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
 <87a65y8sb7.fsf@HIDDEN> <87zgdyy1wm.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEWHX0hULyM/KiX/
 //9fL2cNAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKDgsSKZC1OvMAAAHESURBVCjPRZFNi5MxEMen
 sivsbYU+4vbuwX6KIj4Fe9otm2DmpmyCM59CRBfsaZ/SBJNbpRM28ylND+LcfmTm/0IA/s8MzONm
 nM1nZ7iAITlrvM0PNwPCUMg8+Rgnf8uwcGQmN6Xt7Z3C8I5k8my3Zl3gta1fxePaxssN3CSKzafk
 4p2FNyEcZDABx3kCw07MwihfzRFqRrd0vtDVYIHEOjbE7t5byPRwcsao+yQdrDSDVVO87JDijZ7n
 0G9aOQwrMNpyf2kmv1wB6KnYDm9zWcEL1Zgs1LCPH/BYxEeEFEP8qR3QFhDTbNKqz2osPPv25aws
 3BNEz6EQa0XCbkoa6VWpFBCapSptpjqGLsCjNr1m3mq/kaTarlGOaLtPZG23qNLjiFJRPW7USYBW
 nQh3eKQEUjf5sDyOumva11B+L08jIyNEJfq1fPKMFkEKmh8A5zwLUKz4DYbu5RYwZSLu4oq8hgmR
 XGu12B6nN9Srmu9abAtoEgUrOefdFvQjH4P6EvJ9gobGf871e2oX56CJQ+Y9y/o9TFR53cpeZAwQ
 T5HSWPY72fRfyNnI2iZWDJAbpt42yAEZel2XQkB3jwh/dKf/5i+i6AE30+DuCQAAACV0RVh0ZGF0
 ZTpjcmVhdGUAMjAyMi0xMC0xNFQxMToxODo0MSswMDowMKTBsXkAAAAldEVYdGRhdGU6bW9kaWZ5
 ADIwMjItMTAtMTRUMTE6MTg6NDErMDA6MDDVnAnFAAAAAElFTkSuQmCC
X-Now-Playing: Tyor Iganna's _L'Esprit de Nyege 2020_: "Faras el nil"
Date: Fri, 14 Oct 2022 15:29:36 +0200
Message-ID: <871qra8ren.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Robert Pluim <rpluim@HIDDEN> writes: > Lars> It's not --
 there's a bunch of bug reports around these issues > Lars> *handwaves at
 debbugs*. > > My debbugs-gnu-foo must be too weak: I can only find two, 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Robert Pluim <rpluim@HIDDEN> writes:

>     Lars> It's not -- there's a bunch of bug reports around these issues
>     Lars> *handwaves at debbugs*.
>
> My debbugs-gnu-foo must be too weak: I can only find two,

Isn't two a bunch?  =F0=9F=98=80

> neither of which look like they=CA=BCd be fixed by changing the syntax
> accepted by .dir-locals.el

I suspect that by "syntax" you're thinking about syntax syntax -- I'm
talking semantics syntax.

The .dir-locals.eld file will be Lisp forms, of course.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Stefan Monnier <monnier@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 13:39:02 +0000
Resent-Message-ID: <handler.58506.B58506.166575470013274 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Stefan Kangas <stefan@HIDDEN>, Juri Linkov <juri@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166575470013274
          (code B ref 58506); Fri, 14 Oct 2022 13:39:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 13:38:20 +0000
Received: from localhost ([127.0.0.1]:36261 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojKtH-0003S1-Qu
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:38:20 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:38245)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1ojKtG-0003Ro-DJ
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:38:18 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 2009310012E;
 Fri, 14 Oct 2022 09:38:13 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 9E816100098;
 Fri, 14 Oct 2022 09:38:11 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1665754691;
 bh=vF2NTgJ3WgmzOghVYjJUN82ck/Sa8J6Ill918nhaTLk=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=jkB/NMqdGBJ4tb2TZkE7oD14sgleUXOTPrmCthy6PorFHq41fD+pnBh7v0zncTIzY
 VO8hU/t0dyGba5m96QpQKZL0nLTOanfpJiFH7pIm8271d2Cfb19VU7x3EwelIHQ0wA
 muUhDZilRubYPyLi7WBtObZiHltIpzbnUwnArzb+N1eS4ZdtmKtE+YLR1KooHgyUyN
 3zxXrm49rbwvLMBUGIO9fEh9dSK0Ew4zsjflnKsGGOfjU9DBlaOocu2zLQutugoDzl
 2cEb5sD8TAfe9iFOEq8Eui9mFCSleZ1xE+CZlTzAfsHFTZSDsEeccHpD4qnCEu6GNu
 RyVM51YkzU57A==
Received: from alfajor (65-110-220-202.cpe.pppoe.ca [65.110.220.202])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 64403120CE9;
 Fri, 14 Oct 2022 09:38:11 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <87y1tiabq5.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 14 Oct 2022 13:25:22 +0200")
Message-ID: <jwvilkmplx6.fsf-monnier+emacs@HIDDEN>
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN>
Date: Fri, 14 Oct 2022 09:38:09 -0400
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.075 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> It sort of makes sense to me, but if we're doing a name change, I'd
> rather make it a functional change, too.

While I can see why that might sound attractive, AFAICT the functional
change is very far from being clear, so it seems unlikely it will happen
any time soon.


        Stefan





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 13:42:02 +0000
Resent-Message-ID: <handler.58506.B58506.166575490513640 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Philip Kaludercic <philipk@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166575490513640
          (code B ref 58506); Fri, 14 Oct 2022 13:42:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 13:41:45 +0000
Received: from localhost ([127.0.0.1]:36265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojKwb-0003Xw-DM
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:41:45 -0400
Received: from mail-wr1-f45.google.com ([209.85.221.45]:46937)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1ojKwZ-0003Xi-VU
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 09:41:44 -0400
Received: by mail-wr1-f45.google.com with SMTP id bk15so7583482wrb.13
 for <58506 <at> debbugs.gnu.org>; Fri, 14 Oct 2022 06:41:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=bD9hIWOPXXdD0i4dwm3U2pDHkqUnid9Q2ggPODUgwnw=;
 b=mLFmMa/uBYWiCzW//2EKvBSJABCh01zcjrrnsmtORJoxy65/zxli9N56Odj73GRKij
 lcjG+O7KCsi2zI8+xCGH+8husjVnTqUYwHg5qaM7qR4VbH3EPvknl0V+xCxzW/P5fQVH
 UNWTnkh4xiMHJKpwvbFzd6yT1xay/cVJC0cET+rwGyrZ/4k7g1sMaIiaVnlDwFiX65wx
 LM4ITKFfwfLddhNA4WoJXC1idojdHGPdwjAOVO68ogX0wXBitx6JfnEeB0Ooj41898xj
 gKFcODsPvdfVqSrZiSW4nmpQ6ZFNaS8mi+v7rPDwPIEoEcCebiduYDePCTGhrgFCAb+m
 DEjg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=bD9hIWOPXXdD0i4dwm3U2pDHkqUnid9Q2ggPODUgwnw=;
 b=2TjjMw+uA8NkTTYz9PqhSM0Z5pU8x/XOlJdHNssjqUEHaHrNTCvBknPrvrAjLVwdec
 qnFYiv28iuNzlBWcm39VaNl7oE9iCWO+1Oca0PMHWxR5FySfsCyf4mE8IYQi0QaaCfio
 N2e0OF1YSk4TddzbArdo5YBSb+XzSZqj30cizU8Mk6/PJT0PQS3/r9nLOVlvd6Gr43t0
 bv3lDYe/5SlZ5UvFY3l8TbuOaUEcmyuA6OwQLheCQSawogOWDSwBjvqeemQ8evYXUQ9N
 /PnRwYP4oJEp15c59iANbX1ZFN4yzBSS6yXLH2TUzRvWWf5tr6WQ4j8Cj8Hf4C6zc80i
 LF9g==
X-Gm-Message-State: ACrzQf16zfKzDcc9et4DgP8WM1usVQHvd8cDDPtYkzbISgTvO99Ww6Lr
 8MzIlOOdG3cBrY7PUuKYx+o=
X-Google-Smtp-Source: AMsMyM5g+taRYxPsfzQc3W6LXzRYQ87gdKICEreRsliTUnszBQGMOHDcoa7BttllVNIjItW6kIOV7Q==
X-Received: by 2002:a05:6000:704:b0:22e:c347:291c with SMTP id
 bs4-20020a056000070400b0022ec347291cmr3287924wrb.585.1665754898084; 
 Fri, 14 Oct 2022 06:41:38 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 q10-20020adff94a000000b00225307f43fbsm1931462wrr.44.2022.10.14.06.41.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 14 Oct 2022 06:41:37 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <871qra8ren.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri,
 14 Oct 2022 15:29:36 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
 <87a65y8sb7.fsf@HIDDEN> <87zgdyy1wm.fsf@HIDDEN>
 <871qra8ren.fsf@HIDDEN>
Date: Fri, 14 Oct 2022 15:41:36 +0200
Message-ID: <87v8omy12n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Fri, 14 Oct 2022 15:29:36 +0200, Lars Ingebrigtsen <larsi@HIDDEN=
> said:

    Lars> Robert Pluim <rpluim@HIDDEN> writes:
    Lars> It's not -- there's a bunch of bug reports around these issues
    Lars> *handwaves at debbugs*.
    >>=20
    >> My debbugs-gnu-foo must be too weak: I can only find two,

    Lars> Isn't two a bunch?  =F0=9F=98=80

Maybe, but if one of them is "Lars can=CA=BCt reproduce, waiting for
feedback", is it really open?

    >> neither of which look like they=CA=BCd be fixed by changing the synt=
ax
    >> accepted by .dir-locals.el

    Lars> I suspect that by "syntax" you're thinking about syntax syntax --=
 I'm
    Lars> talking semantics syntax.

    Lars> The .dir-locals.eld file will be Lisp forms, of course.

Then I still fail to see how it=CA=BCs different from `eval', unless you=CA=
=BCre
planning on adding  "run these forms before/after setting the mode"
semantics.

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Philip Kaludercic <philipk@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 15:08:01 +0000
Resent-Message-ID: <handler.58506.B58506.166576006224654 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Stefan Kangas <stefankangas@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>, Juri Linkov <juri@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166576006224654
          (code B ref 58506); Fri, 14 Oct 2022 15:08:01 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 15:07:42 +0000
Received: from localhost ([127.0.0.1]:38313 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojMHm-0006PZ-1g
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 11:07:42 -0400
Received: from mout01.posteo.de ([185.67.36.65]:55789)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1ojMHj-0006PM-Qt
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 11:07:40 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id 11980240026
 for <58506 <at> debbugs.gnu.org>; Fri, 14 Oct 2022 17:07:33 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1665760054; bh=Ilpo1TLBZtdYWMiXXihnxlbCnBagDaWPf7lrfuZwE8A=;
 h=From:To:Cc:Subject:Autocrypt:Date:From;
 b=FtTkqhJaEy+Ba72hfeRngUpXOUqZypekEv1kW83DtdI6LK82DQBBJ8fLVuqeM29Ka
 96HKbqhNBa6zPK+a9wJTSux1G05pN2NrKt2h13fZ6rlBsy8mVnAi7pNfQo5pVmGggd
 fLDebCPZiMhbUohsZM9cucenH5dWV6cPQQXUOkxVcaK7iqgFIYDXXCOaEm1oZIt5PP
 GAQNB+IExwcctPxqntyg8TaR/q6ihw9qMOntPPh390rNjEKjv8oO8ZK3XmHiMdAzfl
 pPk8rE2broGNgKQgTlEJb/P1Gowhexzf27mdWdjSEOl3THE62xIJj5AVrL/SUp4bhX
 2q2slPObwWbPA==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4MpqW553KNz6tn7;
 Fri, 14 Oct 2022 17:07:29 +0200 (CEST)
From: Philip Kaludercic <philipk@HIDDEN>
In-Reply-To: <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 (Stefan Kangas's message of "Fri, 14 Oct 2022 11:22:23 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
Autocrypt: addr=philipk@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ
 CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh
 io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF
 AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo
 Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS
 g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB
Date: Fri, 14 Oct 2022 15:07:19 +0000
Message-ID: <87sfjqh2ag.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Stefan Kangas <stefankangas@HIDDEN> writes:

> Severity: wishlist
>
> [Spun out from Bug#58486.]
>
> Juri Linkov <juri@HIDDEN> writes:
>
>> It's already handled by auto-mode-alist:
>>
>>   (defvar auto-mode-alist
>>        ...
>>        ;; .dir-locals.el is not really Elisp.  Could use the
>>        ;; `dir-locals-file' constant if it weren't defined below.
>>        ("\\.dir-locals\\(?:-2\\)?\\.el\\'" . lisp-data-mode)
>
> It's nice if we can use the "*.eld" extension for files that are not
> supposed to be executed.  But it's hard to just change that outright, as
> a file ".dir-locals.eld" won't be used on old versions of Emacs.

FWIW it could be possible to mitigate this situation using Compat from
ELPA.  It could make use of the `hack-local-variables-hook' and
"transparently" add support for .dir-locals.eld.  Another idea would be
to provide such a feature as a package that could intentionally be
installed from ELPA for older versions.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Philip Kaludercic <philipk@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 14 Oct 2022 15:14:02 +0000
Resent-Message-ID: <handler.58506.B58506.166576043525317 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166576043525317
          (code B ref 58506); Fri, 14 Oct 2022 15:14:02 +0000
Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 15:13:55 +0000
Received: from localhost ([127.0.0.1]:38331 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojMNn-0006aG-6V
	for submit <at> debbugs.gnu.org; Fri, 14 Oct 2022 11:13:55 -0400
Received: from mout01.posteo.de ([185.67.36.65]:34059)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1ojMNl-0006a2-0c
 for 58506 <at> debbugs.gnu.org; Fri, 14 Oct 2022 11:13:53 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout01.posteo.de (Postfix) with ESMTPS id D3B15240029
 for <58506 <at> 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==
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)
From: Philip Kaludercic <philipk@HIDDEN>
In-Reply-To: <87czauzhch.fsf@HIDDEN> (Robert Pluim's message of "Fri, 14
 Oct 2022 15:04:46 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
Autocrypt: addr=philipk@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ
 CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh
 io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF
 AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo
 Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS
 g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB
Date: Fri, 14 Oct 2022 15:13:42 +0000
Message-ID: <87k052h1zt.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Fri, 14 Oct 2022 13:25:22 +0200, Lars Ingebrigtsen <larsi@HIDDEN=
g> 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




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 15 Oct 2022 09:20:02 +0000
Resent-Message-ID: <handler.58506.B58506.166582555428274 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Philip Kaludercic <philipk@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Robert Pluim <rpluim@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166582555428274
          (code B ref 58506); Sat, 15 Oct 2022 09:20:02 +0000
Received: (at 58506) by debbugs.gnu.org; 15 Oct 2022 09:19:14 +0000
Received: from localhost ([127.0.0.1]:39436 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojdK5-0007Ly-RM
	for submit <at> debbugs.gnu.org; Sat, 15 Oct 2022 05:19:14 -0400
Received: from quimby.gnus.org ([95.216.78.240]:55578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ojdK3-0007Lk-DF
 for 58506 <at> debbugs.gnu.org; Sat, 15 Oct 2022 05:19:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=9Y1lElsO6ojyMCXZ191HdixO6+wPNStu2kTMzUcJOiQ=; b=sLhpYDu94J4m6lRudEokhYUaRk
 fpwhMd/2dPoiR4vMOyFjXfRu74wRcPC6hjNr2nuGYS+DARI5ZxiUqs3tJRf0tdigiBl5/sxWr5nod
 Vz8MG6cSznL2FKY9PQ9w5x9Zn+JHEphP1/hztebsAciFV0YgbQVzvcRRyChiK1ZkXm/c=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ojdJr-0006aj-4g; Sat, 15 Oct 2022 11:19:01 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <87k052h1zt.fsf@HIDDEN> (Philip Kaludercic's message of "Fri, 
 14 Oct 2022 15:13:42 +0000")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
 <87k052h1zt.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXGfIbRPEBTVrX/
 //8XHU2tAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKDwkFMEplpa4AAAF1SURBVCjPNdC9bqQwEAfw
 v6MQnbZiJbvZJ7jbp8CnuKEyKw8FXaRsEZ6CFDTpLoqbVJuC1TJPeTM4cYHmx3xh4LpUjRRID2JM
 bshdQWMj9Usq8Lbz1Vrq4O59ZVra6gB7b0M7kyMKgHuM4WF9kUSWaVbmcf4XaEETjLWuzWklhxh8
 APXXxDOBUq1jxw/+IlSp9pRwWHg5oYrUUARW5h2MbHIJ/jczQ49N7nE8CpoKv2qENGyQ7hqO/n4K
 DJGJ8sC1wDeyDX8UIcnA09zsSgYwpxl3P5DL0E/G6DV1tPZWlDRRIFWtxKvUR0EvMX+hdg32/lCw
 PwP7NCpeQccJljRmWS5wSeOLQTxe4E6KySCzYJD4Jpc+CyrtvwhIX/E3ZvmKu61FIIOmXUGHN/4+
 U0U4anBTuILri36/zdDEQu/MXm45bBj4ZqRH9y3nXld3G/IzcYbpMdxGybRMnnqQ1C/yC/J+A/GV
 Pg8T8KAY+Cn3HAu2w5n6/2Byy0hq/tYqAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTEwLTE1VDA5
 OjA1OjQ4KzAwOjAwbE0DUAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMC0xNVQwOTowNTo0OCsw
 MDowMB0Qu+wAAAAASUVORK5CYII=
X-Now-Playing: Bill Callahan & Bonnie Prince Billy's _Blind Date Party (1)_:
 "Blackness Of The Night"
Date: Sat, 15 Oct 2022 11:18:58 +0200
Message-ID: <87ilkl78cd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Philip Kaludercic <philipk@HIDDEN> writes: > 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 ass [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Philip Kaludercic <philipk@HIDDEN> writes:

> 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).

Yes, exactly -- people have to resort to using `eval' (which is
something people should use as little as possible) because our syntax
doesn't allow for simple things like adding values to a list.

Post-mode variables and list concatenation are two things we'd like to
have, but I'm sure there's a whole bunch of stuff people will come up
with if the syntax allowed for (safe) extensions.

I don't know what the new syntax would look like -- the current syntax
is, er, very implementation-friendly and user-hostile.  I.e., it's easy
for Emacs to parse, and difficult for people to write:

((nil . ((tab-width . 8)
         (sentence-end-double-space . t)
         (fill-column . 70)
	 (emacs-lisp-docstring-fill-column . 65)
         (vc-git-annotate-switches . "-w")
         (bug-reference-url-format . "https://debbugs.gnu.org/%s")
	 (diff-add-log-use-relative-names . t)))
 (c-mode . ((c-file-style . "GNU")
            (c-noise-macro-names . ("INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK"))
            (electric-quote-comment . nil)
            (electric-quote-string . nil)
            (indent-tabs-mode . t)
	    (mode . bug-reference-prog))))

Perhaps a more imperative style would be nice.  Err...  something
like...

(in-mode c-mode
  (set c-file-style "GNU")
  (set-early treesit-thing t)
  (add-to-list odd-list 3)
  (minor-mode indent-tabs-mode)
  (minor-mode blink-parentheses-mode))

`safep' would have to be a bit adjusted -- a `safep' for `odd-list'
would be (cl-every #'oddp) etc.

And we'd make the parser backwards/forwards compatible -- i.e., elements
that are unknown to the Emacs version running would just be ignored.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Philip Kaludercic <philipk@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 15 Oct 2022 09:39:02 +0000
Resent-Message-ID: <handler.58506.B58506.166582669730362 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Lars Ingebrigtsen <larsi@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Robert Pluim <rpluim@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166582669730362
          (code B ref 58506); Sat, 15 Oct 2022 09:39:02 +0000
Received: (at 58506) by debbugs.gnu.org; 15 Oct 2022 09:38:17 +0000
Received: from localhost ([127.0.0.1]:39474 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojdcW-0007td-Kc
	for submit <at> debbugs.gnu.org; Sat, 15 Oct 2022 05:38:17 -0400
Received: from mout02.posteo.de ([185.67.36.66]:47669)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <philipk@HIDDEN>) id 1ojdcU-0007t5-7h
 for 58506 <at> debbugs.gnu.org; Sat, 15 Oct 2022 05:38:15 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id EC316240101
 for <58506 <at> debbugs.gnu.org>; Sat, 15 Oct 2022 11:38:06 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1665826687; bh=9ULBi7Pz/LO3/ZZ8qK03TBkabJcSxjvsFBMa2lDiD9M=;
 h=From:To:Cc:Subject:Autocrypt:Date:From;
 b=frDUpAvi/XrSVKHh+/qMugV/u0qeEnHN89txbahVBxTWePy0JJUsBmOrCmM1dVD4B
 xISWaJVDTcLvra+ndHw+FBJi2X9wTw6JmI9PxWRcFtVNLuhi6b+LZON32tZQ6QCAR1
 zWPIxUBTIu2WTiuCt3bx9ritaplTaKU0i2s13WbXzXN1KU5LqyPPj0wM3znoTH9F5m
 XwjvoX7d0r9QF9kyUaWLYoGW8EAHyCfgB6OvoGXxYR7qaMD2MwLRGIb4K2XtjxtPW6
 1zossnv3TLsKZolWzmZTIaqpt2MqyP8Y2hDd3PNR6fS/RRaxfP6nRr59eJ4yX80zO0
 01hSfTsVte8OQ==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4MqJ8Y311lz9rxM;
 Sat, 15 Oct 2022 11:38:05 +0200 (CEST)
From: Philip Kaludercic <philipk@HIDDEN>
In-Reply-To: <87ilkl78cd.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat,
 15 Oct 2022 11:18:58 +0200")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
 <87k052h1zt.fsf@HIDDEN> <87ilkl78cd.fsf@HIDDEN>
Autocrypt: addr=philipk@HIDDEN; prefer-encrypt=nopreference; keydata=
 mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo
 aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0
 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ
 CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh
 io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF
 AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo
 Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS
 g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB
Date: Sat, 15 Oct 2022 09:38:00 +0000
Message-ID: <874jw577gn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Philip Kaludercic <philipk@HIDDEN> writes:
>
>> 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).
>
> Yes, exactly -- people have to resort to using `eval' (which is
> something people should use as little as possible) because our syntax
> doesn't allow for simple things like adding values to a list.
>
> Post-mode variables and list concatenation are two things we'd like to
> have, but I'm sure there's a whole bunch of stuff people will come up
> with if the syntax allowed for (safe) extensions.
>
> I don't know what the new syntax would look like -- the current syntax
> is, er, very implementation-friendly and user-hostile.  I.e., it's easy
> for Emacs to parse, and difficult for people to write:
>
> ((nil . ((tab-width . 8)
>          (sentence-end-double-space . t)
>          (fill-column . 70)
> 	 (emacs-lisp-docstring-fill-column . 65)
>          (vc-git-annotate-switches . "-w")
>          (bug-reference-url-format . "https://debbugs.gnu.org/%s")
> 	 (diff-add-log-use-relative-names . t)))
>  (c-mode . ((c-file-style . "GNU")
>             (c-noise-macro-names . ("INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK"))
>             (electric-quote-comment . nil)
>             (electric-quote-string . nil)
>             (indent-tabs-mode . t)
> 	    (mode . bug-reference-prog))))

Since we are admitting that this is data (-> .eld), not code is it even
necessary to worry about how difficult it is two write.  Couldn't adding
a comment referencing `add-dir-local-variable', or if necessary some
other, new function be enough?

> Perhaps a more imperative style would be nice.  Err...  something
> like...
>
> (in-mode c-mode
>   (set c-file-style "GNU")
>   (set-early treesit-thing t)
>   (add-to-list odd-list 3)
>   (minor-mode indent-tabs-mode)
>   (minor-mode blink-parentheses-mode))

My only objection to "something like" this is that it appears to be Lisp
code, and people could get surprised when they try to add something that
isn't (eg. a regular `add-to-list' call that had a quote -- beginners
often get tripped up on these minor syntactic points).

> `safep' would have to be a bit adjusted -- a `safep' for `odd-list'
> would be (cl-every #'oddp) etc.
>
> And we'd make the parser backwards/forwards compatible -- i.e., elements
> that are unknown to the Emacs version running would just be ignored.

Ideally there would be a warning or some way you could find out that
variables aren't loaded, e.g. if you have a typo in
`blink-parenthesis-mode' vs. `blink-parentheses-mode'.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist
Resent-From: Lars Ingebrigtsen <larsi@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 15 Oct 2022 09:43:02 +0000
Resent-Message-ID: <handler.58506.B58506.166582695630915 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 58506
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Philip Kaludercic <philipk@HIDDEN>
Cc: 58506 <at> debbugs.gnu.org, Robert Pluim <rpluim@HIDDEN>, Juri Linkov <juri@HIDDEN>, Stefan Kangas <stefankangas@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
Received: via spool by 58506-submit <at> debbugs.gnu.org id=B58506.166582695630915
          (code B ref 58506); Sat, 15 Oct 2022 09:43:02 +0000
Received: (at 58506) by debbugs.gnu.org; 15 Oct 2022 09:42:36 +0000
Received: from localhost ([127.0.0.1]:39494 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ojdgi-00082Z-Cj
	for submit <at> debbugs.gnu.org; Sat, 15 Oct 2022 05:42:36 -0400
Received: from quimby.gnus.org ([95.216.78.240]:55916)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1ojdgg-00082M-K0
 for 58506 <at> debbugs.gnu.org; Sat, 15 Oct 2022 05:42:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=+2d5jUTGGO7lAIpCiTJ9Z+LRzXHz6TpSj86dGL2yGpQ=; b=u2GtMleDXN41bpEAAoFoqkTdH6
 uhNuqU2stc2qy3BDsM7gziggr9/g50bn59Ga5eXaQEq/EN1J3kGq0Vo6DR0JgVeefNpQJ4vzz4ERC
 UnHVDGGLsOTAch9liiJ7XqeoUWPhYYrOfHkFX6w7LFfnQBKJwb9/2Nu0+LEXwv2UVz/A=;
Received: from [84.212.220.105] (helo=downe)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1ojdgV-0006ki-Qo; Sat, 15 Oct 2022 11:42:25 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
In-Reply-To: <874jw577gn.fsf@HIDDEN> (Philip Kaludercic's message of "Sat, 
 15 Oct 2022 09:38:00 +0000")
References: <87sfjsgkl4.fsf@HIDDEN>
 <CADwFkmnD8kRjJXWOiKOxkPtLC52DLXZAZ_tdObaQoCTtMKXsFQ@HIDDEN>
 <865ygn4pno.fsf@HIDDEN>
 <CADwFkmnwXyey8CA3EdyczSydMZME2rJB6jh0WFh8S5BYV4Lpcw@HIDDEN>
 <87y1tiabq5.fsf@HIDDEN> <87czauzhch.fsf@HIDDEN>
 <87k052h1zt.fsf@HIDDEN> <87ilkl78cd.fsf@HIDDEN>
 <874jw577gn.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXGfIbRPEBTVrX/
 //8XHU2tAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YKDwkFMEplpa4AAAF1SURBVCjPNdC9bqQwEAfw
 v6MQnbZiJbvZJ7jbp8CnuKEyKw8FXaRsEZ6CFDTpLoqbVJuC1TJPeTM4cYHmx3xh4LpUjRRID2JM
 bshdQWMj9Usq8Lbz1Vrq4O59ZVra6gB7b0M7kyMKgHuM4WF9kUSWaVbmcf4XaEETjLWuzWklhxh8
 APXXxDOBUq1jxw/+IlSp9pRwWHg5oYrUUARW5h2MbHIJ/jczQ49N7nE8CpoKv2qENGyQ7hqO/n4K
 DJGJ8sC1wDeyDX8UIcnA09zsSgYwpxl3P5DL0E/G6DV1tPZWlDRRIFWtxKvUR0EvMX+hdg32/lCw
 PwP7NCpeQccJljRmWS5wSeOLQTxe4E6KySCzYJD4Jpc+CyrtvwhIX/E3ZvmKu61FIIOmXUGHN/4+
 U0U4anBTuILri36/zdDEQu/MXm45bBj4ZqRH9y3nXld3G/IzcYbpMdxGybRMnnqQ1C/yC/J+A/GV
 Pg8T8KAY+Cn3HAu2w5n6/2Byy0hq/tYqAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTEwLTE1VDA5
 OjA1OjQ4KzAwOjAwbE0DUAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0xMC0xNVQwOTowNTo0OCsw
 MDowMB0Qu+wAAAAASUVORK5CYII=
X-Now-Playing: Bill Callahan & Bonnie Prince Billy's _Blind Date Party (1)_:
 "I Love You"
Date: Sat, 15 Oct 2022 11:42:23 +0200
Message-ID: <87ilkl5sow.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Philip Kaludercic <philipk@HIDDEN> writes: > My only
 objection
 to "something like" this is that it appears to be Lisp > code, and people
 could get surprised when they try to add something that > isn't (eg. a regular
 `add-to-list' call that had [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Philip Kaludercic <philipk@HIDDEN> writes:

> My only objection to "something like" this is that it appears to be Lisp
> code, and people could get surprised when they try to add something that
> isn't (eg. a regular `add-to-list' call that had a quote -- beginners
> often get tripped up on these minor syntactic points).

Then I guess `add-to-list' wouldn't be a good "directive" here.

>> And we'd make the parser backwards/forwards compatible -- i.e., elements
>> that are unknown to the Emacs version running would just be ignored.
>
> Ideally there would be a warning or some way you could find out that
> variables aren't loaded, e.g. if you have a typo in
> `blink-parenthesis-mode' vs. `blink-parentheses-mode'.

Well, that would make things less backwards/forwards compatible --
people would be getting warnings when flipping between different Emacs
versions.





Last modified: Sat, 15 Oct 2022 09:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.