GNU logs - #78099, boring messages


Message sent to dmitry@HIDDEN, bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78099: [PATCH] Make 'project-remember-project' interactive
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: dmitry@HIDDEN, bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 27 Apr 2025 20:19:02 +0000
Resent-Message-ID: <handler.78099.B.17457851085324 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 78099
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: 78099 <at> debbugs.gnu.org
Cc: Dmitry Gutov <dmitry@HIDDEN>
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
X-Debbugs-Original-Xcc: Dmitry Gutov <dmitry@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.17457851085324
          (code B ref -1); Sun, 27 Apr 2025 20:19:02 +0000
Received: (at submit) by debbugs.gnu.org; 27 Apr 2025 20:18:28 +0000
Received: from localhost ([127.0.0.1]:44999 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u98SJ-0001Nn-Ju
	for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 16:18:28 -0400
Received: from lists.gnu.org ([2001:470:142::17]:44996)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1u98SG-0001NN-Iw
 for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 16:18:25 -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 1u98SA-0001wx-Lr
 for bug-gnu-emacs@HIDDEN; Sun, 27 Apr 2025 16:18:18 -0400
Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <eg642616@HIDDEN>)
 id 1u98S8-00024g-LI
 for bug-gnu-emacs@HIDDEN; Sun, 27 Apr 2025 16:18:18 -0400
Received: by mail-oi1-x241.google.com with SMTP id
 5614622812f47-3f8d2f8d890so2840157b6e.0
 for <bug-gnu-emacs@HIDDEN>; Sun, 27 Apr 2025 13:18:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1745785095; x=1746389895; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=cKQRhp8vqk1Jy+wg2WZD58RcTQ6MCTqYIhKF3NBviSA=;
 b=gNb+A/uUGdQf63Fk7soJE3SPrG1HnlyiFEbQEPaAJq89JJPEADAErjtYgKia3RtcZA
 R5giqGl8fD3Cn44emCzQtrcjHqX1M1/es4EipH9QlZO3nlN+Ptj34OkIFTO1PIrqEWkh
 mTttEkRplq8x3w2XkeETePtSEbnnwlEDS2Xf0yBQlHPnlhQpEDrLPNYxV0YdaP0C5cWh
 KO5tECGH9BAi1YOPH3o7GlDH1d4he1pAQHmf3u2YiV3XZl8tSzT58Acr3o9qtLncLez0
 BdDYIZ4YFfdG3Hm3/n3YIRuzaFxnR+0kgASEDAUGMoCzJANy5cIrDDBYRNpALhV8NuTt
 9VpA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745785095; x=1746389895;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=cKQRhp8vqk1Jy+wg2WZD58RcTQ6MCTqYIhKF3NBviSA=;
 b=gxDKI+osm8BGmiO4/7o3Bu+8M5jQGyKBQU4QmnBMjRPXFEYxEQIoRI48ojiPn/qwIp
 m6LPnRQpvIhl2kxU/weLe7fqxY7Js8c3PMiGP99Rn+29NgywTRJXBJ/744b22JyOokEo
 tvFVKSmS1vnwIYurWQW+3Ek25gzCVDQyyUrNWgYKxqkMd3XumyNWCJY4NE6EqucpHz7i
 1DhkZ/bBfQoQvpJitOoVFBoi/LhocrXV0bubWpdTkkYkEwom7uVsEKBQJ2q7pFoSG951
 Er01iAa9xwgaHiz204yBrgWsBIG14+dGIiBJo0t8bbI+f9gUiFngMmH5dnGMfKO6dwl2
 rl9A==
X-Gm-Message-State: AOJu0YwSDLKtr0bnTo/q/w7ZkZOWh8jajCupnzMwrXeM/sRtER4ne1Sx
 WkPkdVcgHI4iXNb1m4aSHDxuPT/huEbYriS4cGFEZwWq0l9FSe49GMPZuDs5
X-Gm-Gg: ASbGncvPmTQhkaGOGUY20d3HNIyo5qyYp5fcS+2/gWPGrLBlAOXQPbIOSbAyOCNo5Wj
 T4hLfHD9TzrtjKv+7A72n/7N2BdqlemYkhPpO+mK4zqSAf6omYuA0G2OXtW7AjhU2tkdYb15LgF
 d8q4xx1V/l5RPvxCgfLrmUVqJa5OukyZMb/zbk+I+xCarPQq+bfoniphxvUSDr48bdebofNz1y5
 ZKW7iufKuwkYtzceoCKpI5mobi1pw+Bz4+umXxS0m+HGwVFTLSvm0v3Cdxu3pPAp2gNNrZaMiQk
 ztIVAXFm
X-Google-Smtp-Source: AGHT+IEwrH5nfSClp1wewWasBQknhrsDBY11CFVEYP5/KUwoHwS4GWyQLo79tB/aJC393+qGMJRtiA==
X-Received: by 2002:a05:6808:ed5:b0:3fe:aedb:41c5 with SMTP id
 5614622812f47-401fd7261ddmr2935222b6e.12.1745785094885; 
 Sun, 27 Apr 2025 13:18:14 -0700 (PDT)
Received: from fedora ([2806:10ae:e:8863::1]) by smtp.gmail.com with ESMTPSA id
 006d021491bc7-606468819b1sm1786854eaf.11.2025.04.27.13.18.13
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 27 Apr 2025 13:18:14 -0700 (PDT)
From: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Date: Sun, 27 Apr 2025 14:18:12 -0600
Message-ID: <87selt5pff.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2607:f8b0:4864:20::241;
 envelope-from=eg642616@HIDDEN; helo=mail-oi1-x241.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,
 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 Sometimes when creating a new project it is not
 added to project list. AFAIK the only way to do it is using
 `project-remember-projects-under'
 or `project-switch-project' but they are uncomfortable to [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (eg642616[at]gmail.com)
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (eg642616[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 -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]
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: text/plain

Tags: patch

Sometimes when creating a new project it is not added to project list.
AFAIK the only way to do it is using `project-remember-projects-under'
or `project-switch-project' but they are uncomfortable to use when you
just want to remember the current project you're in.

So I decided to make `project-remember-project' interactive in this
patch for archive this; this let to users use it in hooks (e.g
find-file-hook)


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Make-project-remember-project-interactive.patch

From 717982c87ea0e65d8ab7c1df1ec6fa38558d08de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?El=C3=ADas=20Gabriel=20P=C3=A9rez?= <eg642616@HIDDEN>
Date: Sun, 27 Apr 2025 13:44:39 -0600
Subject: [PATCH] Make 'project-remember-project' interactive

* lisp/progmodes/project.el (project-remember-project): Tweak.
---
 lisp/progmodes/project.el | 26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 1a8bba67124..dd0797da1e0 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -1987,18 +1987,26 @@ project--remember-dir
         (project--write-project-list)))))
 
 ;;;###autoload
-(defun project-remember-project (pr &optional no-write)
-  "Add project PR to the front of the project list.
+(defun project-remember-project (&optional pr no-write)
+  "Add project PR or current project to the front of the project list.
 If project PR satisfies `project-list-exclude', then nothing is done.
 Save the result in `project-list-file' if the list of projects
 has changed, and NO-WRITE is nil."
-  (let ((root (project-root pr)))
-    (unless (seq-some (lambda (r)
-                        (if (functionp r)
-                            (funcall r pr)
-                          (string-match-p r root)))
-                      project-list-exclude)
-      (project--remember-dir root no-write))))
+  (interactive)
+  (if-let* ((pr (or pr (project-current)))
+            (interac (called-interactively-p 'any))
+            (root (project-root pr)))
+      (if (not (seq-some (lambda (r)
+                           (if (functionp r)
+                               (funcall r pr)
+                             (string-match-p r root)))
+                         project-list-exclude))
+          (progn
+            (project--remember-dir root no-write)
+            (when interac (message "Current project remember")))
+        (when interac (message "Current project is blacklisted")))
+    (when (called-interactively-p 'any)
+      (user-error "No project at point"))))
 
 (defun project--remove-from-project-list (project-root report-message)
   "Remove directory PROJECT-ROOT of a missing project from the project list.
-- 
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#78099: Acknowledgement ([PATCH] Make 'project-remember-project'
 interactive)
Message-ID: <handler.78099.B.17457851085324.ack <at> debbugs.gnu.org>
References: <87selt5pff.fsf@HIDDEN>
X-Gnu-PR-Message: ack 78099
X-Gnu-PR-Package: emacs
X-Gnu-PR-Keywords: patch
Reply-To: 78099 <at> debbugs.gnu.org
Date: Sun, 27 Apr 2025 20:19: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.

As you requested using X-Debbugs-CC, your message was also forwarded to
  Dmitry Gutov <dmitry@HIDDEN>
(after having been given a bug report number, if it did not have one).

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 78099 <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
78099: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78099
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78099: [PATCH] Make 'project-remember-project' interactive
Resent-From: Dmitry Gutov <dmitry@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sun, 27 Apr 2025 22:56:01 +0000
Resent-Message-ID: <handler.78099.B78099.174579450411018 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78099
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>, 78099 <at> debbugs.gnu.org
Received: via spool by 78099-submit <at> debbugs.gnu.org id=B78099.174579450411018
          (code B ref 78099); Sun, 27 Apr 2025 22:56:01 +0000
Received: (at 78099) by debbugs.gnu.org; 27 Apr 2025 22:55:04 +0000
Received: from localhost ([127.0.0.1]:45803 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u9Atr-0002rc-Tp
	for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 18:55:04 -0400
Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]:48265)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1u9Ato-0002qk-Tm
 for 78099 <at> debbugs.gnu.org; Sun, 27 Apr 2025 18:55:01 -0400
Received: from phl-compute-11.internal (phl-compute-11.phl.internal
 [10.202.2.51])
 by mailfout.stl.internal (Postfix) with ESMTP id 46BF5114013A;
 Sun, 27 Apr 2025 18:54:55 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-11.internal (MEProxy); Sun, 27 Apr 2025 18:54:55 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm1; t=1745794495;
 x=1745880895; bh=sgMJpYL+ywCQI7EMGt+8P2hcsJucQv7EcALbyK6Tg7s=; b=
 QNkv5bQ9p5y4QrcFpkYTmgRydVhyGFLRTBYdK540D3CiEz25oQIB00ps0qFiy/b3
 aDpQpOlqokz4RrMkWDVda0hP/sEpEontkVGoaKj/xniu6EAAg+aEtEDA9GbjpPML
 Xgyiui2L0Q4kuO30GKBUAEHIHk5GM8jLCJjtQeL6g+Z5l1E4DTqpwqzaCGv6lDi+
 6b8SnP9KYYTqlpDWefbLZWLYbP4RzDIXNMv2l0DIL8ll5cEYP7AusNdBJpDkt6D5
 wH9AVHyotkDLnSo1Ip3hR/OqBZ/VL2E7wEaBAlHTJbU9muciFpmwYLtgcBpr3LWM
 MHxCunyY+vxCISSD33ctaw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm3; t=1745794495; x=1745880895; bh=s
 gMJpYL+ywCQI7EMGt+8P2hcsJucQv7EcALbyK6Tg7s=; b=rIJyJaT/ZOVRBLX4g
 pmRyibidFNQ2RTIj7yPYH8Xi9i5NQC3Mt2qUfofhlEccSWYXardR/0evqKVg1UNM
 l5wgiGt0qV5QwsgLUgeW6aDBqAvgzHhbf5XV/ORKeijHipz5eX/OsmLaUm6CyJq5
 J5c8nw7OVCLf0lEVCPZoH15uFM8GVNVHj2kh0QbFskDmyBq48r8b9LBUQYFCD2SF
 FqgTcdp4TVt+TQMJVQo9OCczlIy5X1NaPinitPoYsD9VKGa8vJ8wjXQXpSCPdUw/
 znG7yA4lVSzKKZwubopYYWF71MiBl4NzL6Y+gKea3DWStrjeacwulhG/wHqJgkNt
 U7mxg==
X-ME-Sender: <xms:vrUOaD6Us8pzxLB0hgsTYPkAD0jODJ9zeT9MyeKAh34XYkkW8H_6Sg>
 <xme:vrUOaI7uw1peT4QlIRT3_VHlML7lnV3VDryT2Z-Gox1dQ7BEgVWvaEPSRfIcsKy1c
 1crrB6LXtqcDiS9vvE>
X-ME-Received: <xmr:vrUOaKd-CLSl6bEJlJ2cGvrTs0kZUt4NbOudTREbnVlNgx2_J8D4gVfI3DqF7xOImAHs>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvheelfedvucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddv
 jeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrd
 guvghvqeenucggtffrrghtthgvrhhnpeegueegteffuddvjeevvdelleeitdeftdduhfef
 feffjedukeevjedvfeffgfevgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh
 epmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthht
 ohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghgieegvdeiudeisehgmh
 grihhlrdgtohhmpdhrtghpthhtohepjeektdelleesuggvsggsuhhgshdrghhnuhdrohhr
 gh
X-ME-Proxy: <xmx:v7UOaEJjPyL1ENIMRq1MjC8FfycCfFNTPkigL2raGaLYLPC89f6VUA>
 <xmx:v7UOaHJTRoFvd4cCP3b21yVF6o0-Es1dr4wWalKX8xzrvnp8hZFtpQ>
 <xmx:v7UOaNyP6IMhZXyIYmRaA54JEDBSz8iyPn7MsMH2_0aRISmmmadvRw>
 <xmx:v7UOaDJ6svS4VeNVZr8t-3zsTvHeZ2sLBUgeQaGGSnWXsPiTePiB3w>
 <xmx:v7UOaFjJgUll3q2dtVLk7PKPWC7NJvbqkRK6oBK9pHmXiZ1s3qMxKeK8>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 27 Apr 2025 18:54:54 -0400 (EDT)
Message-ID: <ef45161c-bd46-4245-b3f2-8b91c38e21ef@HIDDEN>
Date: Mon, 28 Apr 2025 01:54:53 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <87selt5pff.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <87selt5pff.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
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.7 (-)

Hi!

On 27/04/2025 23:18, Elijah Gabe Pérez wrote:
> Sometimes when creating a new project it is not added to project list.
> AFAIK the only way to do it is using `project-remember-projects-under'
> or `project-switch-project' but they are uncomfortable to use when you
> just want to remember the current project you're in.

Please clarify the usage scenario. Doesn't it help to visit it just once?




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78099: [PATCH] Make 'project-remember-project' interactive
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, 28 Apr 2025 00:30:04 +0000
Resent-Message-ID: <handler.78099.B78099.174580017625284 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78099
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Dmitry Gutov <dmitry@HIDDEN>
Cc: 78099 <at> debbugs.gnu.org
Received: via spool by 78099-submit <at> debbugs.gnu.org id=B78099.174580017625284
          (code B ref 78099); Mon, 28 Apr 2025 00:30:04 +0000
Received: (at 78099) by debbugs.gnu.org; 28 Apr 2025 00:29:36 +0000
Received: from localhost ([127.0.0.1]:46573 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u9CNL-0006Zi-SQ
	for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 20:29:36 -0400
Received: from mail-oi1-x244.google.com ([2607:f8b0:4864:20::244]:57838)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1u9CNG-0006YZ-Tc
 for 78099 <at> debbugs.gnu.org; Sun, 27 Apr 2025 20:29:32 -0400
Received: by mail-oi1-x244.google.com with SMTP id
 5614622812f47-401e77e5443so2722504b6e.3
 for <78099 <at> debbugs.gnu.org>; Sun, 27 Apr 2025 17:29:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1745800165; x=1746404965; darn=debbugs.gnu.org;
 h=content-transfer-encoding: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=2bDWvT4GxneaKVFa4WBSULc5VB9gNMEhx//Nj09QXIA=;
 b=KmwRIISVI3qYs3rpjDm7a//l7yFqFLJjIFu5sQ/ytpRie93+4Zu/YcziBuFoWcDyCh
 /BiMNAgF6WimHevXaEXLMBQizNKCpWENuMlDi9pRyS5qNFjBdflCahWgMDo92Ziv5O1A
 y2JLzNh8iqis1RCIfklNxe4OdSTqXJ3vOh+piVpvoI7zlSv3Hm+oxyMp1u8TIbHDMU5K
 wvW9B0BrwJmVlAVUG8vbu/3Vv5XCqCsJd2N+I3DnEvaqqc3Dlsz1uIVa3A75hPIzFiBM
 hfJE8qX77PUmolw9QrVnpZQ0Ja2tLrc1hgV1ff3zUqKJb0ev2mq4V8/I6vIVdQMxP08I
 whhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745800165; x=1746404965;
 h=content-transfer-encoding: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=2bDWvT4GxneaKVFa4WBSULc5VB9gNMEhx//Nj09QXIA=;
 b=deCupoV5iPk/Ss1oSMxHi8zGcT5sA79N2VUeLDW76a8xipFeZrdl0i/3zWCKFS0MI0
 v9YrgnBh57EI5Ime2Cr1nhz9ttiHInyQGsz5CjQoQegUDAB7lgBW38yIUFcSN3pGKuy9
 TCXYFDV7He6sHuCS5kmJqEVzXG/phruWtxjBAVGQeons9RvCzujQZlrQTuekcVoEeeKj
 N5kXmPfSV9mjsWgnrSImBzufPmhx7GXpqCUoC7dJzXXds4c8PV/F5AHaWzBXyfYLwMK6
 dlWCt4syIGtU+805WifRRg8KfPZuz9M7QOV7DOOjIknYcb8HpEKL6xoJpdK6jqVfHrwB
 jBmw==
X-Gm-Message-State: AOJu0YwEdVZ4CKeznMCdCvY1DZZoUqshq5NDxBPQQzv22yXq4isRbLzJ
 TG3XhtUV+h4iybVghfe/QBl2AAor/3RnEo2nRPGgGQyobPxiTnB5u4qbLg/Z
X-Gm-Gg: ASbGncvZUCsEahcHglxolbWFHpmQuEdo4YCUr++P+nx9k2bq+/qFPjXJJJP9z8Q18hB
 6Jrf9DYjReZf4sXjjDvT5ny3qG2O59TOaLfiNZDQItuii8nDFUdVMfzf1OH351noFRBElMnMWP2
 wFA2CY2ZTdV4ZZBtgoD1A/+bKvfkvVe9PJiKbDHDWKnpX8yKgVgRpS7ALwcDjtR2eOTSnpMJZP9
 Jda/SApFjeCQxRFdLEzt5UhD73QpSm4WSkFE4z7B2Xctx7iQLmNkaVvIVne6KU/tTpUZ93goXW4
 W0xcMRFu
X-Google-Smtp-Source: AGHT+IFG0eh8sENUxTwE6ZCaKCNjufx88urBc2k6j7K0r7+xmF/eH9GkKtGYTRQMWV/S19z0dShw/Q==
X-Received: by 2002:a05:6808:444a:b0:401:e848:18b9 with SMTP id
 5614622812f47-401f286b7a8mr5750749b6e.5.1745800164753; 
 Sun, 27 Apr 2025 17:29:24 -0700 (PDT)
Received: from fedora ([2806:10ae:e:8863::1]) by smtp.gmail.com with ESMTPSA id
 5614622812f47-401ec8cce07sm1809683b6e.20.2025.04.27.17.29.24
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 27 Apr 2025 17:29:24 -0700 (PDT)
From: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
In-Reply-To: <ef45161c-bd46-4245-b3f2-8b91c38e21ef@HIDDEN>
References: <87selt5pff.fsf@HIDDEN>
 <ef45161c-bd46-4245-b3f2-8b91c38e21ef@HIDDEN>
Date: Sun, 27 Apr 2025 18:29:23 -0600
Message-ID: <878qnl2knw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
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 (/)

Dmitry Gutov <dmitry@HIDDEN> writes:

> Hi!
>
> On 27/04/2025 23:18, Elijah Gabe P=C3=A9rez wrote:
>> Sometimes when creating a new project it is not added to project list.
>> AFAIK the only way to do it is using `project-remember-projects-under'
>> or `project-switch-project' but they are uncomfortable to use when you
>> just want to remember the current project you're in.
>
> Please clarify the usage scenario.

For example, visiting a new file (usually with `find-file') or importing
and opening a new project, you cannot be sure if it is already in the
project--list (or it was not added to project-list) unless you do
`project-switch-project' (which automatically index it), projectile have
a similar behavior (projectile-auto-update-cache), but it's very slow, so
one way i had to mimic this is this way.

A good use case would be adding it to `find-file-hook', so one would not
have to use `project-switch-project' for each new recent project.

Or for example if you are working in a remote project (not indexed) in
the current file you are in, instead using `project-remember-projects-under'
you can just type: M-x project-remember-project,
and in the current project you are working on gets indexed.

> Doesn't it help to visit it just once?

I don't understand this question well.

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




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78099: [PATCH] Make 'project-remember-project' interactive
Resent-From: Dmitry Gutov <dmitry@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Mon, 28 Apr 2025 00:36:01 +0000
Resent-Message-ID: <handler.78099.B78099.174580053928855 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78099
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Cc: 78099 <at> debbugs.gnu.org
Received: via spool by 78099-submit <at> debbugs.gnu.org id=B78099.174580053928855
          (code B ref 78099); Mon, 28 Apr 2025 00:36:01 +0000
Received: (at 78099) by debbugs.gnu.org; 28 Apr 2025 00:35:39 +0000
Received: from localhost ([127.0.0.1]:46658 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u9CTC-0007VI-U7
	for submit <at> debbugs.gnu.org; Sun, 27 Apr 2025 20:35:39 -0400
Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]:45461)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1u9CT6-0007Tw-NK
 for 78099 <at> debbugs.gnu.org; Sun, 27 Apr 2025 20:35:34 -0400
Received: from phl-compute-05.internal (phl-compute-05.phl.internal
 [10.202.2.45])
 by mailfout.stl.internal (Postfix) with ESMTP id 9F8EC11400CB;
 Sun, 27 Apr 2025 20:35:26 -0400 (EDT)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-05.internal (MEProxy); Sun, 27 Apr 2025 20:35:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm1; t=1745800526;
 x=1745886926; bh=TWuVSdFWantE+BhSlZumtCYM9vkxoz+hDd5buMcstBo=; b=
 TVfnqbEodgA17WZB43X7HFu7nq8ykgWHtrVk0s+aWu6C2UpiPT9ETWt2euzkRPmg
 xcOn9zjmumJKsleVRn3oHFVUIb0xaWvUDOv1+ADTNaUZXd1WAoSoFZUW88XdEEKA
 WzDT+acclGNf209lA8tE2GE88louPzDyxQr7BVlXrQorbKnk+o2RFietKuC1TmV7
 S97oqOcA+4BmhmKQW6YgSRuUAPf87A1Y1+j78V7TQFDMJauM6v8CC4/it5WbgtDD
 ERu4FUINqsXts9YZLWl/DOPngUJdpPiB4d1fph/fNjrBg0LCTEuq206rBxQQrtIP
 TNPsrEazWuHf7V3cie97Qw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1745800526; x=
 1745886926; bh=TWuVSdFWantE+BhSlZumtCYM9vkxoz+hDd5buMcstBo=; b=i
 R4c2bS6EdYamFXOhqjtRLZkp78v1qCpTrgZ8UHUjC/eKZFGLHSKWyMu83nT/TBzZ
 KC7XxQeYUh6e+XDTA3sFNP0udbA1yQcaH1qkHJYIZO3VEaFDh7JcfQx1igszUJML
 UIOVLhepYMq9krxNAzvFx8i9WBc892U9nsPG7lPtr8Agce6VmVqdUif8LYE4w3Dw
 A8N71gRjNXVX0IdrK+MAWqPgbTCVHcI3McJGa6nueTL7ja5bOzs6cFU2LgNt/BwW
 3RMCO9Q9Fpk5fIPgSbBv1zVLE+n3LpWd+CXE5gLLgCpe3YSnus8sb9k9dglYniOs
 7hRsR3/r/nEoUsUUUU86A==
X-ME-Sender: <xms:Ts0OaLGm4cugNIqIh5R_ZM6p7c0lmPvutG7wwwsJl-qSl3ZVoJQF_g>
 <xme:Ts0OaIUb-fvfi5y8jHxNx2-T2fLyy19ElmKJTH7eFmkb4A3S17RaUaNQh3iAiBjSf
 1-1idaci1Q5Aw9K4u4>
X-ME-Received: <xmr:Ts0OaNKNxsMPS6yFMqdLTSlpVLAhWUV3bxe920L2G1sVaBBLVD3MstkO6cOUrBibpItG>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvheelhedvucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddt
 vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh
 druggvvheqnecuggftrfgrthhtvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeet
 veegtedthefhudekteehffeukeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht
 thhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvgheigedvieduieesgh
 hmrghilhdrtghomhdprhgtphhtthhopeejkedtleelseguvggssghughhsrdhgnhhurdho
 rhhg
X-ME-Proxy: <xmx:Ts0OaJF6cN39xxCxOmQhSiSoy3_2ZJHlxO7SkwZFBkAcc9lOzziF_A>
 <xmx:Ts0OaBU68k4PFceMpulrpOAPZ4hvoLPHCRcscJKCUlNx-w_bQl7vMQ>
 <xmx:Ts0OaEM1lH86lcvZ_BgCcdTqBophcorHljMJ_YjuUW8OqIK9yqW-lw>
 <xmx:Ts0OaA1xViD5CySGz-RXXYaOK84vLWnW0iUqcAq34558SAiGyue3iw>
 <xmx:Ts0OaIN7okgim71kF7nztOHhXjVJw_eqEAuDf0tYsXgSu55SP4J-jEDD>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun,
 27 Apr 2025 20:35:25 -0400 (EDT)
Message-ID: <5a920aa6-4f8b-49df-8cf4-1d9ad16e2072@HIDDEN>
Date: Mon, 28 Apr 2025 03:35:23 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <87selt5pff.fsf@HIDDEN>
 <ef45161c-bd46-4245-b3f2-8b91c38e21ef@HIDDEN> <878qnl2knw.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <878qnl2knw.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
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.7 (-)

On 28/04/2025 03:29, Elijah Gabe Pérez wrote:
> For example, visiting a new file (usually with `find-file') or importing
> and opening a new project, you cannot be sure if it is already in the
> project--list (or it was not added to project-list) unless you do
> `project-switch-project' (which automatically index it), projectile have
> a similar behavior (projectile-auto-update-cache), but it's very slow, so
> one way i had to mimic this is this way.

You're right. For it to be added to the list, you'd have to invoke a 
command in it which uses projects at least once (for example, 
project-find-file, 'C-x p f').

Not necessary to use project-switch-project, any command that calls 
(project-current t) will do.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#78099: [PATCH] Make 'project-remember-project' interactive
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, 28 Apr 2025 04:35:03 +0000
Resent-Message-ID: <handler.78099.B78099.174581486625704 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 78099
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Dmitry Gutov <dmitry@HIDDEN>
Cc: 78099 <at> debbugs.gnu.org
Received: via spool by 78099-submit <at> debbugs.gnu.org id=B78099.174581486625704
          (code B ref 78099); Mon, 28 Apr 2025 04:35:03 +0000
Received: (at 78099) by debbugs.gnu.org; 28 Apr 2025 04:34:26 +0000
Received: from localhost ([127.0.0.1]:49387 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u9GCF-0006g8-JO
	for submit <at> debbugs.gnu.org; Mon, 28 Apr 2025 00:34:25 -0400
Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44]:52452)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>)
 id 1u9GCC-0006ev-Cn
 for 78099 <at> debbugs.gnu.org; Mon, 28 Apr 2025 00:34:21 -0400
Received: by mail-qv1-xf44.google.com with SMTP id
 6a1803df08f44-6e8ffa00555so43620326d6.0
 for <78099 <at> debbugs.gnu.org>; Sun, 27 Apr 2025 21:34:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1745814854; x=1746419654; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=vjncWMqkwlkVbtcgV0bFV2ENesIkw/GE8LsszSFh+Pw=;
 b=b2tJiHfp6BdOpAEqLOtUKfZqD9yid2AcDA9W9+elzJkaeMxzxCHxH45pLqUMbHr/kX
 HPST0H8Q4Vck/F8oEpp4HTl6VYO98oeLwOKeni4pNd9u02TCoqz+32cPiRdj+4ZB5lna
 /QuLl7RRRdBS/FvPUn4O4uvcmJj9iwq8ikeicCnif7aZzphURzpwnNl2zKk1ZOdlniOe
 EtpUqgK6ZFdDIC2IbKvAiMgtqPsw7XwlVCJZFaVxT+j6H229urC2S8x6h7oqXMAMwubV
 E8sJgx/hn+2sV8xQrd7aTR6xNo7PpCythaPJrAyvgDusiVb9TgHETorS+zTUiyT7TThp
 H7iA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1745814854; x=1746419654;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=vjncWMqkwlkVbtcgV0bFV2ENesIkw/GE8LsszSFh+Pw=;
 b=QqWK5jol/ZPNxNfm1b6B8oJ5Bq+ugRpVGd5rssUaJwEoZhMbJrh520hHeNs1anedxK
 IMzsr/u4WBlsWarJIPg65VF5NwrWtxRKMVpiOUM1650oguR+IGXIr3IcBpO5JSBd3RH7
 SbuwQirO2FV/41qkXZWBAkJDK6sp1gLeQf9cFhFqnID4lXLKAD4QRZ4SfeUo+ZWn4eQ8
 UmnQW1CZOgEfEttTQFsrmJhU1dMGL0y1LHO3Mb1pxoXkGSnpl5szCRv/8XAq3KJ+wGvT
 Px11mUOMXgToBrfHGE76lTmugXm6PkZt8YzBBG6fFaMXYdPznAdHVsyil9v/jvjzuJpn
 clyg==
X-Gm-Message-State: AOJu0YzruZzqfaEyHrOFxli5Ah9VrwpQT0c85pYpV0A/H++rwREeOWPI
 iISX2ndDlkft1qEFzIQmTDzne02NvMK2QFuWohV+5UPOfKb68/PDqMQ83g3uJtDnTFCZDtr1334
 RSVP23UWbd50P6fvWfDcC2wIsTsAjSnJj
X-Gm-Gg: ASbGncsbtsdc/LrRcJnMMCPezFmzKfXPnPa9pBwK3L7aLN/n72KH6+zUi1cuWP0KfED
 DCHv2owcZb27RmsujuEUlsg8uNMSl69RV3MSjQKutB2YOGnO7ItDu0ia0i53rvEYh6wquUtCSss
 sWxsctu7xcN6/XgRFlektDdzI/vjFsfWTiBCYSyCj1T7Nx3UxWy14=
X-Google-Smtp-Source: AGHT+IGdbZQZKKZMT5FPNHO1m0zZOmAAs/fa7juPXri4WcG83F6ETFxTQtTLA8vigwnpEaOb3jCHWy0Da58W6Bv+06U=
X-Received: by 2002:ad4:5f0b:0:b0:6e4:3ddc:5d33 with SMTP id
 6a1803df08f44-6f4d1efe8abmr155071356d6.13.1745814854620; Sun, 27 Apr 2025
 21:34:14 -0700 (PDT)
MIME-Version: 1.0
References: <87selt5pff.fsf@HIDDEN>
 <ef45161c-bd46-4245-b3f2-8b91c38e21ef@HIDDEN>
 <878qnl2knw.fsf@HIDDEN> <5a920aa6-4f8b-49df-8cf4-1d9ad16e2072@HIDDEN>
In-Reply-To: <5a920aa6-4f8b-49df-8cf4-1d9ad16e2072@HIDDEN>
From: Elijah Gabe =?UTF-8?Q?P=C3=A9rez?= <eg642616@HIDDEN>
Date: Sun, 27 Apr 2025 22:34:03 -0600
X-Gm-Features: ATxdqUF1z2KWwM3hpNStBs73InThHAMXmE0_DqJ6rcUSx2WQ1fylonyiY4F02uo
Message-ID: <CACnP4NLotHwuKKdN2pyrugUSHev1uQVtBmTeUwttWY1erPRJYw@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000040da400633cf3275"
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 (/)

--00000000000040da400633cf3275
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Dmitry Gutov <dmitry@HIDDEN> writes:

> On 28/04/2025 03:29, Elijah Gabe P=C3=A9rez wrote:
> > For example, visiting a new file (usually with `find-file') or importin=
g
> > and opening a new project, you cannot be sure if it is already in the
> > project--list (or it was not added to project-list) unless you do
> > `project-switch-project' (which automatically index it), projectile hav=
e
> > a similar behavior (projectile-auto-update-cache), but it's very slow, =
so
> > one way i had to mimic this is this way.
>
> You're right. For it to be added to the list, you'd have to invoke a
> command in it which uses projects at least once (for example,
> project-find-file, 'C-x p f').
>
> Not necessary to use project-switch-project, any command that calls
> (project-current t) will do.
>

Right, but all these commands will prompt for
select a project/file/directory, it is
exhausting to always have to press C-g to quit it.

In this case, the feature just display a message
whether if project was indexed or not (if called interactively)

--00000000000040da400633cf3275
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D=
"gmail_attr">Dmitry Gutov &lt;<a href=3D"mailto:dmitry@HIDDEN">dmitry@gu=
tov.dev</a>&gt; writes:</div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 28/04/2025 0=
3:29, Elijah Gabe P=C3=A9rez wrote:<br>
&gt; For example, visiting a new file (usually with `find-file&#39;) or imp=
orting<br>
&gt; and opening a new project, you cannot be sure if it is already in the<=
br>
&gt; project--list (or it was not added to project-list) unless you do<br>
&gt; `project-switch-project&#39; (which automatically index it), projectil=
e have<br>
&gt; a similar behavior (projectile-auto-update-cache), but it&#39;s very s=
low, so<br>
&gt; one way i had to mimic this is this way.<br>
<br>
You&#39;re right. For it to be added to the list, you&#39;d have to invoke =
a <br>
command in it which uses projects at least once (for example, <br>
project-find-file, &#39;C-x p f&#39;).<br>
<br>
Not necessary to use project-switch-project, any command that calls <br>
(project-current t) will do.<br></blockquote></div></div><div dir=3D"auto">=
<br></div><div dir=3D"auto">Right, but all these commands will prompt for</=
div><div dir=3D"auto">select a project/file/directory, it is</div><div dir=
=3D"auto">exhausting to always have to press C-g to quit it.</div><div dir=
=3D"auto"><br></div><div dir=3D"auto">In this case, the feature just displa=
y a message</div><div dir=3D"auto">whether if project was indexed or not (i=
f called interactively)</div><div dir=3D"auto"><br></div><div dir=3D"auto">=
<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>

--00000000000040da400633cf3275--





Last modified: Mon, 28 Apr 2025 04:45:01 UTC

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