unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Mauro Aranda <maurooaranda@gmail.com>
To: Juri Linkov <juri@linkov.net>
Cc: 66702@debbugs.gnu.org
Subject: bug#66702: Add easy customization for .dir-locals.el files
Date: Tue, 24 Oct 2023 06:45:04 -0300	[thread overview]
Message-ID: <c05f64c2-0977-46d2-801a-896e2f8d73ab@gmail.com> (raw)
In-Reply-To: <86ttqgpjlt.fsf@mail.linkov.net>

On 24/10/23 03:58, Juri Linkov wrote:
 >>> I tried it out on emacs/.dir-locals.el, and one thing that I 
noticed is that
 >>> it changes the order of modes by sorting them alphabetically.  I'm sure
 >>> people won't like if their files will get so much changes especially
 >>> when they intend to commit a change in a single value.
 >>
 >> That's modify-dir-local-variable doing the sorting.
 >>
 >> You get the same results by doing:
 >> emacs -Q
 >> 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.

 > PS: This is not directly related to your current patch that I believe
 > is ready to be installed if no one will have more comments.

Great.  Thank you!





  reply	other threads:[~2023-10-24  9:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-23 14:21 bug#66702: Add easy customization for .dir-locals.el files Mauro Aranda
2023-10-23 14:24 ` Mauro Aranda
2023-10-23 17:16   ` Juri Linkov
2023-10-23 20:43     ` Mauro Aranda
2023-10-24  6:58       ` Juri Linkov
2023-10-24  9:45         ` Mauro Aranda [this message]
2023-10-25  6:48           ` Juri Linkov
2023-10-27 11:06             ` Mauro Aranda
2023-10-28 17:02   ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c05f64c2-0977-46d2-801a-896e2f8d73ab@gmail.com \
    --to=maurooaranda@gmail.com \
    --cc=66702@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).