From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#58506: Use ".dir-locals.eld" and ".dir-locals-2.eld" when they exist Date: Fri, 14 Oct 2022 13:25:22 +0200 Message-ID: <87y1tiabq5.fsf@gnus.org> References: <87sfjsgkl4.fsf@posteo.net> <865ygn4pno.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15269"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 58506@debbugs.gnu.org, Philip Kaludercic , Stefan Monnier , Juri Linkov To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 14 13:34:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojIxJ-0003ia-0j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 13:34:21 +0200 Original-Received: from localhost ([::1]:47876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojIxI-0002TB-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 14 Oct 2022 07:34:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojIpG-00062V-SF for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 07:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36873) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojIpG-0001Mn-4D for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 07:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ojIpF-0005tf-R7 for bug-gnu-emacs@gnu.org; Fri, 14 Oct 2022 07:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Oct 2022 11:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58506 X-GNU-PR-Package: emacs Original-Received: via spool by 58506-submit@debbugs.gnu.org id=B58506.166574673922634 (code B ref 58506); Fri, 14 Oct 2022 11:26:01 +0000 Original-Received: (at 58506) by debbugs.gnu.org; 14 Oct 2022 11:25:39 +0000 Original-Received: from localhost ([127.0.0.1]:35951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojIos-0005t0-UH for submit@debbugs.gnu.org; Fri, 14 Oct 2022 07:25:39 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:45338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ojIor-0005sk-6K for 58506@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=; Original-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 ) id 1ojIoe-0005R7-R8; Fri, 14 Oct 2022 13:25:26 +0200 In-Reply-To: (Stefan Kangas's message of "Fri, 14 Oct 2022 11:22:23 +0200") X-Now-Playing: Afrorack's _L'Esprit de Nyege 2020_: "Last Modular" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:245404 Archived-At: Stefan Kangas 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.