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: Tue, 24 Oct 2023 06:45:04 -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> 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="39638"; 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 Tue Oct 24 11:46:15 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 1qvDzK-000AEi-OT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Oct 2023 11:46:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvDyx-0002dn-Sy; Tue, 24 Oct 2023 05:45:51 -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 1qvDyf-0002WI-D6 for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 05:45:37 -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 1qvDyf-0001cI-4N for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 05:45:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvDz7-0002MT-S6 for bug-gnu-emacs@gnu.org; Tue, 24 Oct 2023 05:46: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: Tue, 24 Oct 2023 09:46: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.16981407479056 (code B ref 66702); Tue, 24 Oct 2023 09:46:01 +0000 Original-Received: (at 66702) by debbugs.gnu.org; 24 Oct 2023 09:45:47 +0000 Original-Received: from localhost ([127.0.0.1]:53176 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDyt-0002M0-6H for submit@debbugs.gnu.org; Tue, 24 Oct 2023 05:45:47 -0400 Original-Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]:44477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvDyp-0002Li-39 for 66702@debbugs.gnu.org; Tue, 24 Oct 2023 05:45:45 -0400 Original-Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-581b6b93bd1so2486611eaf.1 for <66702@debbugs.gnu.org>; Tue, 24 Oct 2023 02:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698140707; x=1698745507; 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=f1sP8zUx7rxA2A+zl9ANuF7bs4r3cMn0oFd85ZBXMp8=; b=kfZ5VqNFtLHdZw4YhXKM8rH3/poRQGMKiA3KE0mZ0ejnL/I1THmoPFcfMuBi4vZDql 25m8/ecB7gleIoUUCn8+hY3001XvQvuK+QHS5fUzzOtgzLdx/1dBTPZ+/HN3FRCmNJlw mb08lBYja+bNKtv5sbOfm62ErAtUzcKgBPO3EpShDwT1hN8VFPLURXL7zukJzLjaj8Tt VWagshO0CUjeY9Mo4i29c0vLxzVubxWz8FXdSFwDBLqCDyvCd6ZDMN/UYEOrECMZBnen B2zmgOcwyxzt/eC6YANKmq3L+FWof+Wx/rNDZygR1LOJYzHkCA20CpWZ2ilDrtW11hos theQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698140707; x=1698745507; 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=f1sP8zUx7rxA2A+zl9ANuF7bs4r3cMn0oFd85ZBXMp8=; b=W8rp5VU/IM+J3x/UJ2YtmnW13sk12viww/wive43RQiK81p3p6qiy/ahQrlJDqpIPU TIXUX9WsBDv9fy5ZPCAxgqMOPa02oxqCyYUAHpiJ/fl2xrjzRyjREGv/alN6SLJ8qJGW bbazLWMVzKKk5l9drktIQXvG84MdB8GypviGzADQU0Vmv2ARMRznBmTWE0N0+qMqPFv7 xCunEIfn3Z807a+7BrwfqQOBAgUlC/DVguFtoXGNDUHouxLytDC8PkQgn1m6v6/PLsjn VYNqsaJ6eha22HywLJYMbruErQNlTJFZ4A2h7UZlKq9ztxixaxdgTSNfPU7RtDvbMZQn MBGA== X-Gm-Message-State: AOJu0Ywpb3yOgkqgNi731abw0gVA7dgYNcnlBJ+fo5vS44mfSEjs1EwU AXN4Pg+0kWSkA0c4w+TxOHglThzP63hYvg== X-Google-Smtp-Source: AGHT+IF/XxlFdMjJKHFS9c5iak8zOh3amg56lro/zNEx5pOVeP9+kceK34Z4L7HmX+60ONtqyBlWKA== X-Received: by 2002:a05:6358:cd04:b0:168:d0a3:202f with SMTP id gv4-20020a056358cd0400b00168d0a3202fmr8175563rwb.15.1698140707373; Tue, 24 Oct 2023 02:45:07 -0700 (PDT) Original-Received: from [192.168.0.234] ([152.168.142.156]) by smtp.gmail.com with ESMTPSA id q12-20020aa7842c000000b006930db1e6cfsm7353355pfn.62.2023.10.24.02.45.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Oct 2023 02:45:06 -0700 (PDT) Content-Language: en-US In-Reply-To: <86ttqgpjlt.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:273091 Archived-At: 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!