From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#66702: Add easy customization for .dir-locals.el files Date: Wed, 25 Oct 2023 09:48:27 +0300 Organization: LINKOV.NET Message-ID: <867cnb8af8.fsf@mail.linkov.net> References: <26133bfe-9782-46eb-b1a0-880fbf7cd48d@gmail.com> <6b6dd892-c19a-408f-bbbd-61536a7385f8@gmail.com> <86il6xp8d1.fsf@mail.linkov.net> <86ttqgpjlt.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38128"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 66702@debbugs.gnu.org To: Mauro Aranda Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 25 08:51:44 2023 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 1qvXk0-0009nX-FV for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Oct 2023 08:51:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvXju-0007Te-2B; Wed, 25 Oct 2023 02:51:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvXjp-0007TH-54 for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 02:51:33 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvXjo-0006bq-TI for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 02:51:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvXkI-0000Te-BE for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 02:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Oct 2023 06:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66702 X-GNU-PR-Package: emacs Original-Received: via spool by 66702-submit@debbugs.gnu.org id=B66702.16982166761782 (code B ref 66702); Wed, 25 Oct 2023 06:52:02 +0000 Original-Received: (at 66702) by debbugs.gnu.org; 25 Oct 2023 06:51:16 +0000 Original-Received: from localhost ([127.0.0.1]:57180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvXjX-0000Sg-QE for submit@debbugs.gnu.org; Wed, 25 Oct 2023 02:51:16 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:47151) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvXjV-0000SR-EH for 66702@debbugs.gnu.org; Wed, 25 Oct 2023 02:51:14 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 05DF6FF815; Wed, 25 Oct 2023 06:50:35 +0000 (UTC) In-Reply-To: (Mauro Aranda's message of "Tue, 24 Oct 2023 06:45:04 -0300") X-GND-Sasl: juri@linkov.net 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273147 Archived-At: >>> M-x add-dir-local-variable RET nil RET foo RET t >>> M-x diff-buffer-with-file RET RET >>> >>> Should we add a nosort option somewhere? >> >> The assumption was that .dir-locals.el will always be modified >> by these commands.  But since it's often modified manually >> with an arbitrary order, this means that the sorting order >> is not important.  So we could simply remove the sorting code. > > Hmm, but that would be backward incompatible.  Someone out there might > be relying in these commands to keep the settings sorted. Then we could add a simple variable, not a customizable option. Then they could even set this variable in the customized .dir-locals.el!