From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauro Aranda Newsgroups: gmane.emacs.bugs Subject: bug#66702: Add easy customization for .dir-locals.el files Date: Fri, 27 Oct 2023 08:06:26 -0300 Message-ID: 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> <867cnb8af8.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4115"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 66702@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 27 13:07:54 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 1qwKgz-0000uj-EL for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Oct 2023 13:07:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwKgk-00068H-55; Fri, 27 Oct 2023 07:07:39 -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 1qwKgf-00067U-Dr for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 07:07: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 1qwKgc-0002Qj-Lk for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 07:07:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qwKh7-0006JW-Uc for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 07:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mauro Aranda Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Oct 2023 11:08:01 +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.169840483324200 (code B ref 66702); Fri, 27 Oct 2023 11:08:01 +0000 Original-Received: (at 66702) by debbugs.gnu.org; 27 Oct 2023 11:07:13 +0000 Original-Received: from localhost ([127.0.0.1]:35248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwKgK-0006IF-N5 for submit@debbugs.gnu.org; Fri, 27 Oct 2023 07:07:12 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:53650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwKgE-0006Hg-Sh for 66702@debbugs.gnu.org; Fri, 27 Oct 2023 07:07:11 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1c9bca1d96cso16148805ad.3 for <66702@debbugs.gnu.org>; Fri, 27 Oct 2023 04:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698404790; x=1699009590; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=8Jw3yU+qVqVTF59VScIhiK4BmUjq8FINqxgW978dmio=; b=NLYNdWF3uP0zJxyzbjq3ZxBmCwINyCFipM5N1sA4bHWY59u1IyYVEkjXC525lkHlpH /+RyUy5uNJk+qjEOiP/JuGVomSoDg3seT+M0xHh+vcLI+spLJevQbaE+gGqsQ7YJO5Pq G5qEn7QsbnL6g4AYnH9d3Vr95I7LueJGvKCO6QRuyEFf4Q+Ns2L7A8eUIPzj8cAl3YgY M4IqhNlPU2qC52DolCpK7Ulg70ZgWjk/oeOkrRV3/0Z8xuvOD/i9NDdF2RaATqmZikr5 /zsJJYISiE91NAwq1qAtfywNbuet8rAQxxD0688K2zp6Pq6pSfQqjUJQBn9QiWvGlBry aDVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698404790; x=1699009590; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8Jw3yU+qVqVTF59VScIhiK4BmUjq8FINqxgW978dmio=; b=Y5LDHupWI4xo9QFS/ikKNCsKnP0j/nvXr8NTuxf5zMdqCg1WsY9S6j340F/tsyqwD4 EoilFyVI18vigjmv2h1kPyulCyq4ZY7qItROyS/xZjGhKq0XvI4hUkkuqqQY0CofxRkR nCRgfcBtlOgc7G9w6eij53jQx7U6yLz7o4tG8zlTIdML7lse7BmRK8yHLHnX03Q1zwRm 3BE9ySfJr5rT47TXT9mTnOWz6SwIRcLcWaNaOA2Ur8judDUkB4MrXPiOslp46I1qXDE9 B8+bh2tyVscBZHyQbyUUzQHjfZrykzaY/5KHQT6kfq8zi1AbrwNN/v9x47ZFeydanHkC 8nyw== X-Gm-Message-State: AOJu0Yx0888JVNIms27yYIWlmHM0iF3NHGlujsq0uJZNAT/kQkUqa7qP HfeMk+iIogcOIGx2hVJ9BIw7F4QV748LjqMT X-Google-Smtp-Source: AGHT+IEFJ9Z28MrQRMyECMApjppovz2qbVxLKW3HWEbiLOVY9mVQk63A3aMQuLZO2UXbot/+lMbNmw== X-Received: by 2002:a17:902:6b0c:b0:1ca:2ec4:7f38 with SMTP id o12-20020a1709026b0c00b001ca2ec47f38mr1890026plk.17.1698404789593; Fri, 27 Oct 2023 04:06:29 -0700 (PDT) Original-Received: from [192.168.0.234] ([152.168.142.156]) by smtp.gmail.com with ESMTPSA id jg7-20020a17090326c700b001c6052152fdsm1301453plb.50.2023.10.27.04.06.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 27 Oct 2023 04:06:29 -0700 (PDT) Content-Language: en-US In-Reply-To: <867cnb8af8.fsf@mail.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:273373 Archived-At: On 25/10/23 03:48, Juri Linkov wrote: >>>> 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! That should be good enough, I think.