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: Wed, 25 Oct 2023 09:48:27 +0300	[thread overview]
Message-ID: <867cnb8af8.fsf@mail.linkov.net> (raw)
In-Reply-To: <c05f64c2-0977-46d2-801a-896e2f8d73ab@gmail.com> (Mauro Aranda's message of "Tue, 24 Oct 2023 06:45:04 -0300")

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





  reply	other threads:[~2023-10-25  6:48 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
2023-10-25  6:48           ` Juri Linkov [this message]
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=867cnb8af8.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).