GNU logs - #77229, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77229: [PATCH] Add 'project-customize-dirlocals'
Resent-From: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 24 Mar 2025 03:59:01 +0000
Resent-Message-ID: <handler.77229.B.174278872510965 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 77229
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: 77229 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.174278872510965
          (code B ref -1); Mon, 24 Mar 2025 03:59:01 +0000
Received: (at submit) by debbugs.gnu.org; 24 Mar 2025 03:58:45 +0000
Received: from localhost ([127.0.0.1]:53606 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1twYxY-0002qm-Qy
	for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 23:58:45 -0400
Received: from lists.gnu.org ([2001:470:142::17]:43542)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1twYxR-0002qT-BO
 for submit <at> debbugs.gnu.org; Sun, 23 Mar 2025 23:58:41 -0400
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 <eg642616@HIDDEN>)
 id 1twYxL-000700-Ge
 for bug-gnu-emacs@HIDDEN; Sun, 23 Mar 2025 23:58:31 -0400
Received: from mail-oa1-x43.google.com ([2001:4860:4864:20::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <eg642616@HIDDEN>)
 id 1twYxJ-0001cd-H2
 for bug-gnu-emacs@HIDDEN; Sun, 23 Mar 2025 23:58:31 -0400
Received: by mail-oa1-x43.google.com with SMTP id
 586e51a60fabf-2b3680e548aso2774749fac.0
 for <bug-gnu-emacs@HIDDEN>; Sun, 23 Mar 2025 20:58:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742788708; x=1743393508; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=CIAVAaKxp2mThElIFK9wtHYHbnUf3ATjP1kZ8/mzdzI=;
 b=X0MSqhJsv96bLqAmlZr7yJnPQNMDqAckDIvxafMCXDeaV/lE5AMyUUyLl34Ggpb8fA
 NjOGgOtb9s3JdYRjA2rxn1wzk8aV/m1aNu1yhOk6d7yS5OVkdjlINlvx3MyyC+Sbbtvz
 dbNUceFnB3XtTYFAZVKayuk0Zu0/wyGTgcbQ7tYTm+LgX9ET4kXcSiA3qY+/D7ni2qoF
 RZjCYix+vVmbU15dllNp7i8EMuO3Wga8EEq6JNjM2tgIRvRvrhZdX5BaXva2IWlTzui1
 jpwWhNhPMAWyb3JFhzl5+JZJIU1dOmx1rL7OcksL72JkKC1A8xNLwwgetvBgYOF4syw/
 IH/A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742788708; x=1743393508;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=CIAVAaKxp2mThElIFK9wtHYHbnUf3ATjP1kZ8/mzdzI=;
 b=PR+f4YdaeDjXGXHk6KFs4nTtnG4aQ2MokudyvLbTXDw4uk4+se9WK9w2ET2xtvVp2J
 4nnJQbBJxmsrZjythJKN+aoHAuxMIwsMHVOksWKb+6Xlq76ZSf6Y4qARkVZeFqc9MxGt
 bBAU5PlBJhanBmANRiNMERHu1/OINNCC/voJIYJGYJGNHHJz8MPCr5wQ8gy7hzTHi+rb
 f93eKE2ewne4JNTajse4YVohZrHJEhvqf+YJhfcQYBYidIFN8gKLl10UUqBPWD7FeoWU
 7F90WZ9/9h/ISaE85lpafaSpsYx++415OEAEhgOi1RLjT9NmMTY0dYhjbXVi/G5qgYkh
 n7Zg==
X-Gm-Message-State: AOJu0Ywtcl5RExqzFAyEjZ+iVLWPzTDNQArx6qYZWNLNowpfwCLj/ijt
 1TDqBuWIz3jKDcyim5itiohmfnzKTgKZxqbZ+MY69k89FUT36mEBjZeNE2iS
X-Gm-Gg: ASbGncvUyRLIGM6FL+BbQSHqzjIKtYsd+Jm4mLH/qk8SkgVeLtuehswMsFlTCUWxIHV
 dWL0900FFlnCyn55tO63aZIH5bF12B7uD5kEm2p/AcNcwlmrZu2dcjWehfcbZdFAUK77TGCNE51
 +8xmsV+Yvzj7S3qcvGstSUYiw45KJd4ZbPFbowr1fQ6eknSZ0PdqdOEO36FajmU7P1YGhi0C9a4
 //OO2sfK7gWtKxGOqwuJCBV3iQuSUcsBdrDwiJTKXMje2kUmicK9D0pCkjvqgjkPYeY4A6Okntx
 fULcuQs4diz+
X-Google-Smtp-Source: AGHT+IECfPj5RzWKuu8SmHHUc+Nh+4QUK404y94HaWc3gzDmYbej2+DOMp10cdEM/Bv6r7+/W0j5HQ==
X-Received: by 2002:a05:6870:d14b:b0:29d:c6dd:cc6c with SMTP id
 586e51a60fabf-2c7804952d4mr7689631fac.15.1742788707881; 
 Sun, 23 Mar 2025 20:58:27 -0700 (PDT)
Received: from fedora ([2806:10ae:e:5fce::1]) by smtp.gmail.com with ESMTPSA id
 586e51a60fabf-2c77ece4132sm1865497fac.27.2025.03.23.20.58.27
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 23 Mar 2025 20:58:27 -0700 (PDT)
From: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Date: Sun, 23 Mar 2025 21:58:26 -0600
Message-ID: <87r02nrsf1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2001:4860:4864:20::43;
 envelope-from=eg642616@HIDDEN; helo=mail-oa1-x43.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Tags: patch This patch add a new function for use
 =customize-dirlocals=
 in projects. customize-dirlocals by default creates a .dir-locals.el if there
 is not one found at current directory, this new function aims [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (eg642616[at]gmail.com)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (eg642616[at]gmail.com)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.0 HTML_MESSAGE           BODY: HTML included in message
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)

--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="

--==-=-=
Content-Type: text/plain

Tags: patch

This patch add a new function for use =customize-dirlocals= in projects.
customize-dirlocals by default creates a .dir-locals.el if there is not
one found at current directory, this new function aims to ensure to
create (or open) one at current project root.




--==-=-=
Content-Type: text/html

<p>
Tags: patch<br />
</p>

<p>
This patch add a new function for use <code>customize-dirlocals</code> in projects.<br />
customize-dirlocals by default creates a .dir-locals.el if there is not<br />
one found at current directory, this new function aims to ensure to<br />
create (or open) one at current project root.<br />
</p>

--==-=-=--

--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
 filename=0001-Add-project-customize-dirlocals.patch

From 31f1f80668aea33c3f130e792f010a35b1609519 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= <eg642616@HIDDEN>
Date: Sun, 23 Mar 2025 21:35:32 -0600
Subject: [PATCH] Add 'project-customize-dirlocals'

* lisp/menu-bar.el (menu-bar-project-menu): Add new function
entry to project menu.
* lisp/progmodes/project.el (project-customize-dirlocals):
New interactive command.
---
 lisp/menu-bar.el          | 1 +
 lisp/progmodes/project.el | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 1685357fab6..6a68ad63a5b 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1830,6 +1830,7 @@ menu-bar-project-menu
     (define-key menu [project-compile] '(menu-item "Compile..." project-compile :help "Invoke compiler or Make for current project, view errors"))
     (define-key menu [separator-project-programs] menu-bar-separator)
     (define-key menu [project-switch-project] '(menu-item "Switch Project..." project-switch-project :help "Switch to another project and then run a command"))
+    (define-key menu [project-customize-dirlocals] '(menu-item "Customize Directory Local Variables" project-customize-dirlocals :help "Customize current project Directory Local Variables."))
     (define-key menu [project-vc-dir] '(menu-item "VC Dir" project-vc-dir :help "Show the VC status of the project repository"))
     (define-key menu [project-dired] '(menu-item "Open Project Root" project-dired :help "Read the root directory of the current project, to operate on its files"))
     (define-key menu [project-find-dir] '(menu-item "Open Directory..." project-find-dir :help "Open existing directory that belongs to current project"))
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index e2cd5bfa231..158f334fea3 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -1391,6 +1391,12 @@ project-vc-dir
   (interactive)
   (vc-dir (project-root (project-current t))))
 
+;;;###autoload
+(defun project-customize-dirlocals ()
+  "Run `customize-dirlocals' in current project's root."
+  (interactive)
+  (customize-dirlocals (concat (project-root (project-current t)) ".dir-locals.el")))
+
 (declare-function comint-check-proc "comint")
 
 ;;;###autoload
-- 
2.49.0


--=-=-=
Content-Type: text/plain


-- 
                                          - E.G via GNU Emacs and Org.

--=-=-=--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Subject: bug#77229: Acknowledgement ([PATCH] Add 'project-customize-dirlocals')
Message-ID: <handler.77229.B.174278872510965.ack <at> debbugs.gnu.org>
References: <87r02nrsf1.fsf@HIDDEN>
X-Gnu-PR-Message: ack 77229
X-Gnu-PR-Package: emacs
X-Gnu-PR-Keywords: patch
Reply-To: 77229 <at> debbugs.gnu.org
Date: Mon, 24 Mar 2025 03:59:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 77229 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
77229: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77229
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77229: [PATCH] Add 'project-customize-dirlocals'
Resent-From: Mauro Aranda <maurooaranda@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 24 Mar 2025 09:46:01 +0000
Resent-Message-ID: <handler.77229.B77229.174280953915423 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77229
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>, 77229 <at> debbugs.gnu.org
Received: via spool by 77229-submit <at> debbugs.gnu.org id=B77229.174280953915423
          (code B ref 77229); Mon, 24 Mar 2025 09:46:01 +0000
Received: (at 77229) by debbugs.gnu.org; 24 Mar 2025 09:45:39 +0000
Received: from localhost ([127.0.0.1]:54259 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tweNH-00040h-0o
	for submit <at> debbugs.gnu.org; Mon, 24 Mar 2025 05:45:39 -0400
Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:47182)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tweNE-00040J-7Z
 for 77229 <at> debbugs.gnu.org; Mon, 24 Mar 2025 05:45:36 -0400
Received: by mail-pl1-x635.google.com with SMTP id
 d9443c01a7336-22401f4d35aso82715065ad.2
 for <77229 <at> debbugs.gnu.org>; Mon, 24 Mar 2025 02:45:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742809530; x=1743414330; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id:from
 :to:cc:subject:date:message-id:reply-to;
 bh=bN1N4NfIk2U22awQJnbCuSzv1XiFTFYwnBw+9rglulo=;
 b=hWegMLKbz91lz2iAMxDd7Nc1vYSqAa3qFmUCAF/w9o55CBKsNGjNAx0fwndw8N1G8S
 mnLLWn7Ld9Uv/lWuzYlTp7XOUrN3f93MrxyUlgnF2QiFJh3ERhGQ9krC4e66nP8mrSUO
 J0UFTJhCbAuyaCZUIp2+ium/Phr+TppWskcspLCXwGVuaZSS0/rTrxnDECymwVkP/KN7
 H3VyMSTOwLUKIcRCOIDhzbm5miGw7UtgeYqe6RoSly35+h60cD4z2jhKizOYnjPmRVdL
 su2VEM3DW3cGdpzCERPFlfgmUpk7RwMh60/XgjJ1Q1ouCbUKhIWDPBO4v6ZOygukG1TW
 F/PA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742809530; x=1743414330;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=bN1N4NfIk2U22awQJnbCuSzv1XiFTFYwnBw+9rglulo=;
 b=QPW+kGljSlf6pIu05oVEcm2aZJz8OhOOwm3m1o1TRK0ekPxMbTxuOKzr9Wl0KgEeGC
 qWxvXYhifUE7p94usvtCl1RBvb/09NXuv429NfdEo3TXHEB5qV2t+4+mtHLJAATDsCmc
 zMe9A/n5IPsCgpEVzhYkP584G2k1UjaP3XIqwkV6g9RvouOfr2xsMIcueSj1M8uzMS/W
 tn3sDCVDVyzUYt2zg+shYtLesf/5t+a3/eaK0qIMgCXk3mmBNZC/IAmYp4Dj/6ltxZwm
 wRt4cKX//WpLL971AgcbKmrGgqw/TVw/I5teI1EeZCzHoSh+11xkC9v230POX71EjS6y
 lyUQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCXKJOvZrXsK2WwN9hvdeSeJgZzqwjEO1Km2BykSSe1zl+EnpT7/S4pWvnGsgkVtzYiCOSAQ6w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwJC4bjwMhgI7KfCi6tjBbI1gANOphd/Wufx/fl5Z6cRec48QjD
 F5hHJBMVyMRbj8pUygt9/Z3XJN8WfAZCWl9kiDgtIgW6GOjUj0WBbKk7Osr8
X-Gm-Gg: ASbGncuLLWlr2tHA2l9dCRfcbd8lWxwuIJUU6oTc6yqyc0h/OKob8QB4w92oP4HyZus
 ZeGP0e/pnlyILxtNknUHcIfA90dsLKG5pF2sShNUnZ/cZroC3s2aCCqxbGUqV3g3H/OYebEd6n+
 r/+KXUYbhDp49+gc7ZCOik4cIl+mKOfQElAd31qDmcdgV7hvB+jmy/EyuXGqw7/stfhNjGUuqCg
 qs/zVkjv4DmnAoSw1bdp/XAaosUorE+zsCeI7NPagSvoQhTUBhPBNIvTxQbsSWwnIDmsWXk02dq
 sbaXHZSJ2EjaeNYgAN4Nuu2lh5CUDHb0cAG0qiztueGFYeaHn14=
X-Google-Smtp-Source: AGHT+IHLkl7WK/frA5pMBgxRbZywclyg1aP7IR+YoIaZN6HMjctKdWEDk5DmOv4tbPRMmr2GuKjjpQ==
X-Received: by 2002:a17:902:d58c:b0:220:ce37:e31f with SMTP id
 d9443c01a7336-22780d7e9bemr196908325ad.17.1742809529999; 
 Mon, 24 Mar 2025 02:45:29 -0700 (PDT)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-7390611d580sm7427760b3a.119.2025.03.24.02.45.28
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 24 Mar 2025 02:45:29 -0700 (PDT)
Message-ID: <e00e7b67-3962-45a7-88b5-6e0897dca2c3@HIDDEN>
Date: Mon, 24 Mar 2025 06:45:27 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <87r02nrsf1.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <87r02nrsf1.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Elijah Gabe Pérez <eg642616@HIDDEN> writes:

 > Tags: patch
 >
 > This patch add a new function for use customize-dirlocals in projects.
 > customize-dirlocals by default creates a .dir-locals.el if there is
 > not one found at current directory, this new function aims to ensure
 > to create (or open) one at current project root.

Thanks.  I had that in my original package, but it seems I completely
forgot to add it back then.

 >>From 31f1f80668aea33c3f130e792f010a35b1609519 Mon Sep 17 00:00:00 2001
 > From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= <eg642616@HIDDEN>
 > Date: Sun, 23 Mar 2025 21:35:32 -0600
 > Subject: [PATCH] Add 'project-customize-dirlocals'
 >
 > * lisp/menu-bar.el (menu-bar-project-menu): Add new function
 > entry to project menu.
 > * lisp/progmodes/project.el (project-customize-dirlocals):
 > New interactive command.

Please mention the Bug#.

 > --- a/lisp/progmodes/project.el
 > +++ b/lisp/progmodes/project.el
 > @@ -1391,6 +1391,12 @@ project-vc-dir
 >    (interactive)
 >    (vc-dir (project-root (project-current t))))
 >
 > +;;;###autoload
 > +(defun project-customize-dirlocals ()
 > +  "Run `customize-dirlocals' in current project's root."
 > +  (interactive)
 > +  (customize-dirlocals (concat (project-root (project-current t)) 
".dir-locals.el")))
 > +

Would you change it to use file-name-concat or expand-file-name? From
past discussions, I think that using concat for file names is
discouraged.





Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77229: [PATCH] Add 'project-customize-dirlocals'
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 24 Mar 2025 12:58:02 +0000
Resent-Message-ID: <handler.77229.B77229.1742821070416 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77229
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Mauro Aranda <maurooaranda@HIDDEN>
Cc: eg642616@HIDDEN, 77229 <at> debbugs.gnu.org
Received: via spool by 77229-submit <at> debbugs.gnu.org id=B77229.1742821070416
          (code B ref 77229); Mon, 24 Mar 2025 12:58:02 +0000
Received: (at 77229) by debbugs.gnu.org; 24 Mar 2025 12:57:50 +0000
Received: from localhost ([127.0.0.1]:54697 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1twhNG-00006d-35
	for submit <at> debbugs.gnu.org; Mon, 24 Mar 2025 08:57:50 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48396)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1twhNC-00006M-C1
 for 77229 <at> debbugs.gnu.org; Mon, 24 Mar 2025 08:57:46 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1twhN6-0003oC-Il; Mon, 24 Mar 2025 08:57:40 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=CHkFFSSqG7HlFct0hBDMuemoJzYCcklk6zs/fDE49lI=; b=dRkFac73z7sY
 n7n3AYxU2VK0Y3mlb2Sm42pKiVpU78yfPZujgXpKtIdK0hG8OrobOaOlXyR/eFmrsBq714yYh480u
 RL7zPu98xi2la0/b83f1HxNccIxCdDlUZ5MQ+JsucoqLWCmAA1VJTKBCYlyaUqjZD2+iYtmAJ9AX0
 99ino9uOvIyxc9VDfW4c4Jq9ShcW4GFpaRtRmmaQFZohrr+giPKZK2RnOyLkACoIM33Jdov0RfcbV
 uorvTk7h4spFBvhHsKZdIuYghSEWSJJlmNQeL9ZDL9ecKtsq34qR9egfXnmdNjIcBk764548hc2ZQ
 tFmZ7ir5eO3+dJsiVcT4tg==;
Date: Mon, 24 Mar 2025 14:57:35 +0200
Message-Id: <865xjyfuww.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <e00e7b67-3962-45a7-88b5-6e0897dca2c3@HIDDEN> (message from
 Mauro Aranda on Mon, 24 Mar 2025 06:45:27 -0300)
References: <87r02nrsf1.fsf@HIDDEN>
 <e00e7b67-3962-45a7-88b5-6e0897dca2c3@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Mon, 24 Mar 2025 06:45:27 -0300
> From: Mauro Aranda <maurooaranda@HIDDEN>
> 
>  > +(defun project-customize-dirlocals ()
>  > +  "Run `customize-dirlocals' in current project's root."
>  > +  (interactive)
>  > +  (customize-dirlocals (concat (project-root (project-current t)) 
> ".dir-locals.el")))
>  > +
> 
> Would you change it to use file-name-concat or expand-file-name? From
> past discussions, I think that using concat for file names is
> discouraged.

Yes, but file-name-concat is also not right here.  Please use
expand-file-name.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77229: [PATCH] Add 'project-customize-dirlocals'
Resent-From: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 24 Mar 2025 18:26:01 +0000
Resent-Message-ID: <handler.77229.B77229.174284070420480 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77229
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 77229 <at> debbugs.gnu.org, Mauro Aranda <maurooaranda@HIDDEN>
Received: via spool by 77229-submit <at> debbugs.gnu.org id=B77229.174284070420480
          (code B ref 77229); Mon, 24 Mar 2025 18:26:01 +0000
Received: (at 77229) by debbugs.gnu.org; 24 Mar 2025 18:25:04 +0000
Received: from localhost ([127.0.0.1]:58184 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1twmTv-0005K2-Rx
	for submit <at> debbugs.gnu.org; Mon, 24 Mar 2025 14:25:04 -0400
Received: from mail-oo1-xc42.google.com ([2607:f8b0:4864:20::c42]:49438)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1twmTt-0005IY-3i
 for 77229 <at> debbugs.gnu.org; Mon, 24 Mar 2025 14:25:01 -0400
Received: by mail-oo1-xc42.google.com with SMTP id
 006d021491bc7-6021e3daeabso2095455eaf.3
 for <77229 <at> debbugs.gnu.org>; Mon, 24 Mar 2025 11:25:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1742840695; x=1743445495; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=DLV3ALWRm9533uPKo5CLRYXa46amEmVbK4yGr5zKC40=;
 b=mmwVFa7ZPojvLgFlxmTnvcthc3iEAF4Kq/Pd1tqXm2aP8/5MtS5ROpvU7y+cPzR3nb
 8eqehvqVAX9Jfe7nan/X36A62R4WDwio6TuvsOYyRlZExpvDEKSnQHhFZFH/nKjN1z63
 2yGL91x00uNB7nEbJamFNccSww2GOwROH+9SpJBAd9qQLa0bOOI7QfSjpePywySsJJGm
 C6baAvHeZ/498sinyvpC+80ZNRhca4C0lI56pO74otDgizmvDDjsnb8LA+pfzRDhZsc2
 aYtgF+gJxyQadkE4vqVdG/Rik26i1NgWy6kuj6aEoko39bAyFrIq5TSkyXIiw3d5Jksy
 CSHg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1742840695; x=1743445495;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=DLV3ALWRm9533uPKo5CLRYXa46amEmVbK4yGr5zKC40=;
 b=DNw2i48vXyi540veClsTiUljP7i3qpYmjMMJvqip1wCSu5gk1sxsbM0aZ5q4uZfPmR
 Vf1McaoKTMq4kasn9iViCmwkDaZqXHKvJhvAc9zt/g9vvAbN3vKbz/0kmFxqF74ASKW9
 d081K6Z4dK1aXwHVVKjCylaZIeGtNyR5isfgPCjle08/yBzFvK7pjUBrA9QLRPWtUBQr
 K6iXTiKS68FSzkFob/lHRsDX5D8Z4hx4ZIgdcyADwC8frXEtnEh1kwSe3+xIPkko2ncw
 l+Yoc8Hcw+t/q8AQsdwtLBlpzBeRNoIeQZM4gp+JxaNS7ZZAkl8LLC9ZcPlVcGgIvG0Y
 zAHw==
X-Forwarded-Encrypted: i=1;
 AJvYcCVp1UBBGSetf/l2BUrEEiNzylQotOIzr64Ny5XgWonEEP8B4W7NTdoz1Ext8CVGE85lz8qB7w==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yx24ENaxS3H2M6eFUIjnZpL53wUjzaBqdk2+WZoh2lztv3tM6L/
 IDhXFVoyDkamfKwop+b8fX1M92W6iJY0tEjj9K56gXAn326fpRpbZptLKAoN
X-Gm-Gg: ASbGncsOc82pszUdX2a/hspNhCReAxiwUoLFwmsMrv2afUavvh9RJO+F7dbT9H6TcqY
 03bUldrFi4/hmCb3DPN3ciLW0yajgXtS7jAEqfjyYfj5j+owWix58CKK4/RRBP1AdmNQzWu2eAT
 w6c61/h+X3xejmrjAB9S+QWecUsaDsNjzr4zclbd9oMbcNm5LaNYS+RbCHbo8N0qi9g0sbZ2f7m
 QollP+HqC8dmfdlo5GD2Zu2FfESpktcRfdd0FDeZL52+WyJtRZy53wgmnRNMVox3TsohShAFR/2
 CJa9FJtYNdIR
X-Google-Smtp-Source: AGHT+IE486Sd33ItbrRJ+Z6EUDg17FRMKnyIt9WpWnOAR3VdlXdT9SQlj9Qrcr8lgWuGzxGIHxtDjw==
X-Received: by 2002:a05:6820:2406:b0:5fc:fb1a:2b8a with SMTP id
 006d021491bc7-602346041afmr6758747eaf.6.1742840694847; 
 Mon, 24 Mar 2025 11:24:54 -0700 (PDT)
Received: from fedora ([2806:10ae:e:5fce::1]) by smtp.gmail.com with ESMTPSA id
 006d021491bc7-602346dce01sm1290911eaf.8.2025.03.24.11.24.53
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 24 Mar 2025 11:24:54 -0700 (PDT)
From: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
In-Reply-To: <865xjyfuww.fsf@HIDDEN>
References: <87r02nrsf1.fsf@HIDDEN>
 <e00e7b67-3962-45a7-88b5-6e0897dca2c3@HIDDEN>
 <865xjyfuww.fsf@HIDDEN>
Date: Mon, 24 Mar 2025 12:24:53 -0600
Message-ID: <87wmcel216.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="

--==-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

>> Date: Mon, 24 Mar 2025 06:45:27 -0300
>> From: Mauro Aranda <maurooaranda@HIDDEN>

>>  > +(defun project-customize-dirlocals ()
>>  > +  "Run `customize-dirlocals' in current project's root."
>>  > +  (interactive)
>>  > +  (customize-dirlocals (concat (project-root (project-current t)) 
>> ".dir-locals.el")))
>>  > +

>> Would you change it to use file-name-concat or expand-file-name? From
>> past discussions, I think that using concat for file names is
>> discouraged.

> Yes, but file-name-concat is also not right here.  Please use
> expand-file-name.

Done.




--==-=-=
Content-Type: text/html

<p>
Eli Zaretskii &lt;eliz@HIDDEN&gt; writes:<br />
</p>

<p>
<blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div><blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div>Date: Mon, 24 Mar 2025 06:45:27 -0300<br />
From: Mauro Aranda &lt;maurooaranda@HIDDEN&gt;<br />

</div></blockquote>

</div></blockquote>
</p>

<p>
<blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div><blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div><blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div>+(defun project-customize-dirlocals ()<br />
+  "Run `customize-dirlocals' in current project's root."<br />
+  (interactive)<br />
+  (customize-dirlocals (concat (project-root (project-current t))<br />

</div></blockquote>
".dir-locals.el")))<br />
<blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div>+<br />

</div></blockquote>

</div></blockquote>

</div></blockquote>
</p>

<p>
<blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div><blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div>Would you change it to use file-name-concat or expand-file-name? From<br />
past discussions, I think that using concat for file names is<br />
discouraged.<br />

</div></blockquote>

</div></blockquote>
</p>

<p>
<blockquote class="gmail_quote" style="border-left:#5555EE solid 0.2em;margin: 0em;padding-left: 0.85em;font-family: monospace;unicode-bidi: isolate;display: box;">

<div>Yes, but file-name-concat is also not right here.  Please use<br />
expand-file-name.<br />

</div></blockquote>
</p>

<p>
Done.<br />
</p>

--==-=-=--

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Add-project-customize-dirlocals.patch

From feb95a04b34e92bc59611e21eb775d76d219a8cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= <eg642616@HIDDEN>
Date: Sun, 23 Mar 2025 21:35:32 -0600
Subject: [PATCH] Add 'project-customize-dirlocals'

* lisp/menu-bar.el (menu-bar-project-menu): Add new function
entry to project menu.
* lisp/progmodes/project.el (project-customize-dirlocals):
New interactive command. (Bug#77229)
---
 lisp/menu-bar.el          | 1 +
 lisp/progmodes/project.el | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 1685357fab6..6a68ad63a5b 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -1830,6 +1830,7 @@ menu-bar-project-menu
     (define-key menu [project-compile] '(menu-item "Compile..." project-compile :help "Invoke compiler or Make for current project, view errors"))
     (define-key menu [separator-project-programs] menu-bar-separator)
     (define-key menu [project-switch-project] '(menu-item "Switch Project..." project-switch-project :help "Switch to another project and then run a command"))
+    (define-key menu [project-customize-dirlocals] '(menu-item "Customize Directory Local Variables" project-customize-dirlocals :help "Customize current project Directory Local Variables."))
     (define-key menu [project-vc-dir] '(menu-item "VC Dir" project-vc-dir :help "Show the VC status of the project repository"))
     (define-key menu [project-dired] '(menu-item "Open Project Root" project-dired :help "Read the root directory of the current project, to operate on its files"))
     (define-key menu [project-find-dir] '(menu-item "Open Directory..." project-find-dir :help "Open existing directory that belongs to current project"))
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index e2cd5bfa231..56e72caae1d 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -1391,6 +1391,12 @@ project-vc-dir
   (interactive)
   (vc-dir (project-root (project-current t))))
 
+;;;###autoload
+(defun project-customize-dirlocals ()
+  "Run `customize-dirlocals' in current project's root."
+  (interactive)
+  (customize-dirlocals (expand-file-name ".dir-locals.el" (project-root (project-current t)))))
+
 (declare-function comint-check-proc "comint")
 
 ;;;###autoload
-- 
2.49.0


--=-=-=
Content-Type: text/plain


-- 
                                          - E.G via GNU Emacs and Org.

--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#77229: [PATCH] Add 'project-customize-dirlocals'
Resent-From: Mauro Aranda <maurooaranda@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 31 Mar 2025 11:27:02 +0000
Resent-Message-ID: <handler.77229.B77229.174342037932095 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 77229
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 77229 <at> debbugs.gnu.org
Received: via spool by 77229-submit <at> debbugs.gnu.org id=B77229.174342037932095
          (code B ref 77229); Mon, 31 Mar 2025 11:27:02 +0000
Received: (at 77229) by debbugs.gnu.org; 31 Mar 2025 11:26:19 +0000
Received: from localhost ([127.0.0.1]:40090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tzDHW-0008LW-F7
	for submit <at> debbugs.gnu.org; Mon, 31 Mar 2025 07:26:19 -0400
Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:47284)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tzDHU-0008Ks-Kr
 for 77229 <at> debbugs.gnu.org; Mon, 31 Mar 2025 07:26:17 -0400
Received: by mail-pl1-x633.google.com with SMTP id
 d9443c01a7336-22401f4d35aso84259315ad.2
 for <77229 <at> debbugs.gnu.org>; Mon, 31 Mar 2025 04:26:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743420370; x=1744025170; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=2JoCtk6p2H+S4XICeJ/ltAc23rwfqUqCOwEmXzwAvXs=;
 b=i56S+z6rBsGxy3rSv8E8mmhbIdgkSJjfLSu2W0Dkm6ZffrPxI+kf1xoslxhSjqnyvn
 dvrB4OkG4FHGqLAXOCkp4JGtH45zkGFQobWXcODK94kpBpeus9BxOFIuasmwqOZfPcdx
 1J9s5IGEf4t7UapmZVGTVKQZAKBq2oikKVa1HwycPSWZcL98qqrIPruFDFzNwr/wsIUE
 +kePeTKQm0DtI3BQTva4y4OiXspqqMcRUJVoPn1AxKbONnfXw3aHVQrdDA9egTUB9RoW
 tSuKV/wfEtx1kwZerVP7lS3rbyxUyTxWsRRTTeOA52dfy3kYDnUzB/bzMAHzvvn4y/jh
 eAGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743420370; x=1744025170;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=2JoCtk6p2H+S4XICeJ/ltAc23rwfqUqCOwEmXzwAvXs=;
 b=itTgc73qPfZdHIhyknVDhGtoEWLhiLIjoAMy9xvYSSoQplkH4z9L0F0+/qKKFMzXV+
 i3c7z1yNUigLhsJC0dwxmMGRnDXWX9XE86vaZU8lVV6Cb8Mz4vWXDl1AZWEWPsEGk+0F
 T/m3K7mFGCCSLXnnQ+00Mi5p67j9JJhh98YwPV0u4OPzkzyi414nkMtZivcpyhUIiFpj
 FTo1+pq5xpu6LQyY6c6oB/yzuaRHBPqyuR29tXUZ6xpUmlf68DlbAdGMS3xl2Wf9YG6B
 37WMj++5+mH866BsBMZuV3VSxY3yanjFmOvyWJWpPcKL0GlF3OXGNoTwA8OtmKZsCAaB
 d8rw==
X-Gm-Message-State: AOJu0YwgOtiyp5urjkP176BHPHcEeGI1whhvqZL3itoLC4mQhLjpNA/q
 FkPueAoTU5gYr+lJN5mXGeoN+caxRGl8TFaqFWrWh3uDNjMCTakP
X-Gm-Gg: ASbGncsmkkovmXXx+WH0vWPv/7XEVgGY8tmS75ozndbncj8DsSgRqdckMM6DgEphG+w
 O25qxQ4RI2YS6+RJpCR7ILf7hb6CmS3AKUfayyp13vKtTBHixuO2BDngrA0xszgCFb/c/YhSSjc
 y9dwLnt46tRFDwJ27Gsye1Pxl/Gn6MiOpf5NzBTpX8akYh1FB5SLg4BtIE9HSxnieP0UxfgDzPZ
 9f79/776nILVKhHp7uiXRGNzQ2Mp8wSAvoMO5UwDG/HuNT1IJ378Yosn1Dxn3Um93aJQmsvGl8o
 igsdoQr1cRPGYquuWqfOamaO5S1cDu3v+twIEY4sDuC9g/1lpTUtuoG54wFjLA==
X-Google-Smtp-Source: AGHT+IGIEcEgUErVeKduvUDWYlhAKsfl0PN4I7uI60jrPnX963qx6TId5+Rf2wCXJbVA1Sxy0iSBiQ==
X-Received: by 2002:a05:6a21:3414:b0:1f5:83bd:6cc1 with SMTP id
 adf61e73a8af0-2009f39641bmr16535026637.0.1743420370448; 
 Mon, 31 Mar 2025 04:26:10 -0700 (PDT)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-af93ba0e4f0sm6125882a12.72.2025.03.31.04.26.08
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 31 Mar 2025 04:26:09 -0700 (PDT)
Message-ID: <a8eeef58-b883-4010-ae69-1aa374301d0f@HIDDEN>
Date: Mon, 31 Mar 2025 08:26:06 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <87r02nrsf1.fsf@HIDDEN>
 <e00e7b67-3962-45a7-88b5-6e0897dca2c3@HIDDEN> <865xjyfuww.fsf@HIDDEN>
 <87wmcel216.fsf@HIDDEN>
Content-Language: en-US
From: Mauro Aranda <maurooaranda@HIDDEN>
In-Reply-To: <87wmcel216.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Elijah Gabe Pérez <eg642616@HIDDEN> writes:

 > Eli Zaretskii <eliz@HIDDEN> writes:
 >
 >  Date: Mon, 24 Mar 2025 06:45:27 -0300
 >  From: Mauro Aranda <maurooaranda@HIDDEN>
 >
 >  +(defun project-customize-dirlocals ()
 >  + "Run `customize-dirlocals' in current project's root."
 >  + (interactive)
 >  + (customize-dirlocals (concat (project-root (project-current t))
 >
 >  ".dir-locals.el")))
 >
 >  +
 >
 >  Would you change it to use file-name-concat or expand-file-name? From
 >  past discussions, I think that using concat for file names is
 >  discouraged.
 >
 >  Yes, but file-name-concat is also not right here. Please use
 >  expand-file-name.
 >
 > Done.

 >>From feb95a04b34e92bc59611e21eb775d76d219a8cb Mon Sep 17 00:00:00 2001
 > From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= <eg642616@HIDDEN>
 > Date: Sun, 23 Mar 2025 21:35:32 -0600
 > Subject: [PATCH] Add 'project-customize-dirlocals'
 >
 > * lisp/menu-bar.el (menu-bar-project-menu): Add new function
 > entry to project menu.
 > * lisp/progmodes/project.el (project-customize-dirlocals):
 > New interactive command. (Bug#77229)

Nit: "Interactive command" sounds redundant.  And I think we leave two
spaces after the period in commit messages too.

 > diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
 > index 1685357fab6..6a68ad63a5b 100644
 > --- a/lisp/menu-bar.el
 > +++ b/lisp/menu-bar.el
 > @@ -1830,6 +1830,7 @@ menu-bar-project-menu
 >      (define-key menu [project-compile] '(menu-item "Compile..." 
project-compile :help "Invoke compiler or Make for current project, view 
errors"))
 >      (define-key menu [separator-project-programs] menu-bar-separator)
 >      (define-key menu [project-switch-project] '(menu-item "Switch 
Project..." project-switch-project :help "Switch to another project and 
then run a command"))
 > +    (define-key menu [project-customize-dirlocals] '(menu-item 
"Customize Directory Local Variables" project-customize-dirlocals :help 
"Customize current project Directory Local Variables."))
 >      (define-key menu [project-vc-dir] '(menu-item "VC Dir" 
project-vc-dir :help "Show the VC status of the project repository"))
 >      (define-key menu [project-dired] '(menu-item "Open Project Root" 
project-dired :help "Read the root directory of the current project, to 
operate on its files"))
 >      (define-key menu [project-find-dir] '(menu-item "Open 
Directory..." project-find-dir :help "Open existing directory that 
belongs to current project"))
 > diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
 > index e2cd5bfa231..56e72caae1d 100644
 > --- a/lisp/progmodes/project.el
 > +++ b/lisp/progmodes/project.el
 > @@ -1391,6 +1391,12 @@ project-vc-dir
 >    (interactive)
 >    (vc-dir (project-root (project-current t))))
 >
 > +;;;###autoload
 > +(defun project-customize-dirlocals ()
 > +  "Run `customize-dirlocals' in current project's root."
 > +  (interactive)
 > +  (customize-dirlocals (expand-file-name ".dir-locals.el" 
(project-root (project-current t)))))

Nit: Rearrange this last line to respect the 80-character limit.


More importantly, I think this new command should be announced in NEWS.






Last modified: Mon, 31 Mar 2025 11:30:05 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.