unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Mauro Aranda <maurooaranda@gmail.com>
Cc: 66702@debbugs.gnu.org
Subject: bug#66702: Add easy customization for .dir-locals.el files
Date: Tue, 24 Oct 2023 09:58:50 +0300	[thread overview]
Message-ID: <86ttqgpjlt.fsf@mail.linkov.net> (raw)
In-Reply-To: <b033da90-bc83-4110-8c20-58403276a57b@gmail.com> (Mauro Aranda's message of "Mon, 23 Oct 2023 17:43:35 -0300")

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

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.





  reply	other threads:[~2023-10-24  6:58 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 [this message]
2023-10-24  9:45         ` Mauro Aranda
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=86ttqgpjlt.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=66702@debbugs.gnu.org \
    --cc=maurooaranda@gmail.com \
    /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).