Received: (at 78099) by debbugs.gnu.org; 15 May 2025 00:30:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 20:30:59 2025 Received: from localhost ([127.0.0.1]:47937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uFMV1-0007sq-4a for submit <at> debbugs.gnu.org; Wed, 14 May 2025 20:30:59 -0400 Received: from mail-ot1-x343.google.com ([2607:f8b0:4864:20::343]:60908) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>) id 1uFMUy-0007sb-Cy for 78099 <at> debbugs.gnu.org; Wed, 14 May 2025 20:30:57 -0400 Received: by mail-ot1-x343.google.com with SMTP id 46e09a7af769-731e277a6b0so421886a34.1 for <78099 <at> debbugs.gnu.org>; Wed, 14 May 2025 17:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747269050; x=1747873850; 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=uJCLHtBMp85gL+CqKr2SRK/OyI+EoUkIEMgDnHTQenM=; b=VEPHFwd0FAFmXPYdC27S8zAfbmFxy9qsiZnsP1mnzgJd6z/jMA19gqBpsYSvGkHLFy ISGMREpqf85QaKw3dwvzPcNJWGIZPJEC4DUWRf0eIuTIrlfsDdEAP84+lWCOh/ofQuHq 9pLUvsmL3DTkVEkg+7OAmZEmW7Wgnp05GcSFb1UKC59lWct3zq5psqFpRTMRvfJ39DFb 3MRgbnJsey5R+e6Q9sz9YzXzLkeTyahpG7/z7VKyyMJHaRIbDgcuqCxxn7t9PY8lO5Q8 tQYUvdQQGBEvKgScT9edTxtRoXh1ztEvg5kU0SzpXvLqOagc2IDozlqG+4KwtXy5H16p nAwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747269050; x=1747873850; 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=uJCLHtBMp85gL+CqKr2SRK/OyI+EoUkIEMgDnHTQenM=; b=gFLg12v17PxuH8yB5V606Ydd6/30bcRCEEYUDEfQxST+jmQZvwnAI5somz90p4h9M+ a/5sSfwpRrCrTicAIzZYKQO6/otlVmVsqQukwfXOpYOBgTwBfC1vE1yBFRGmUkj+Kiax 0xwgaviOFU04pTgXasPn2ZOYwl2oSULgtJ63gHRG0cFpbg1nVNraMlKx90x5H95esLNa tmnbcfoeUQSN6chU7QmIHd5FQXSR82RIE8x1hADt0Ox80u2F9UExn193bAXrxkBgK9my vWDtxdVtYscxoLg6W8RmgjJmV55F93JXEb88cWXW68NQKn9IZj+IqkF3dz8CN7TxC3y/ K7tQ== X-Gm-Message-State: AOJu0Yxy2qgK/ltQ9Ldf6ZCTyZ0xR7THl0GW0XtInbPAOtH6YrqTJyxQ 3WORZPjhsIP3RgcDFRpvxJrXMdVyqsMHbOkv2Eqp/H6d5ae4IFel+rSgo272 X-Gm-Gg: ASbGncvFHL1ydCmj7+I6ak4avwvIQ/y3ogjwHrGYERqH2gS2q5VFN9R8E1aFgUq/qZY njLUsCCfywSpkDmouphoDVVSs6G7I81QGF17JgyWa/P93nWmAkzhyG/pYB/7xMqxcVQg+Hippqo FvtxPkPXPsfG7I9YC3CL2xdRbCzEATC8lVC+5ElfYtfFfIrbGiRmJFYMio3/48qDlhBfY/WE7NP XVGemPT1eVZC8UBCAmZ42ofq0/NLoKhZhbSb3ApjZrybN8tlTF3kRBN6uoxcFA7oExytJtIcM+7 6v49BW1/duS06P+QiaM= X-Google-Smtp-Source: AGHT+IGhY3qK8yN5Ql6DOVntUnJ+2HXZCJE0EF1A08TYZB4HZQJ+stmbGFNdZNG5CD7h1462p+h96w== X-Received: by 2002:a05:6830:4885:b0:72b:872f:efc8 with SMTP id 46e09a7af769-734e1579af8mr4134374a34.24.1747269050146; Wed, 14 May 2025 17:30:50 -0700 (PDT) Received: from fedora ([2806:10ae:e:7379::1]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-732264b4a69sm2528456a34.24.2025.05.14.17.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 May 2025 17:30:49 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> To: Dmitry Gutov <dmitry@HIDDEN> Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive In-Reply-To: <662f7c56-b7ee-4e3c-aa0c-a2df78d0f544@HIDDEN> References: <87selt5pff.fsf@HIDDEN> <2a309194-4c60-4e3f-ae2c-0d67240c4b91@HIDDEN> <87frhq7ac2.fsf@HIDDEN> <662f7c56-b7ee-4e3c-aa0c-a2df78d0f544@HIDDEN> Date: Wed, 14 May 2025 18:30:48 -0600 Message-ID: <877c2i7m13.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-Debbugs-Envelope-To: 78099 Cc: 78099 <at> debbugs.gnu.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.7 (/) Dmitry Gutov <dmitry@HIDDEN> writes: > On 30/04/2025 03:38, Elijah Gabe P=C3=A9rez wrote: >>> On 27/04/2025 23:18, Elijah Gabe P=C3=A9rez wrote: >>>> + (interactive) >>> Something like >>> >>> (interactive (list (project-current t))) >>> >>> should allow to keep PR a required argument. >> Thanks, done: > > How about this? Modulo reindentation. > > diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el > index 27b69277e81..e7ae7d282ab 100644 > --- a/lisp/progmodes/project.el > +++ b/lisp/progmodes/project.el > @@ -1933,12 +1933,18 @@ project-remember-project > 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) > + (interactive (list (project-current t))) > + (let ((root (project-root pr)) > + (interact (called-interactively-p 'any))) > + (if (seq-some (lambda (r) > (if (functionp r) > (funcall r pr) > (string-match-p r root))) > project-list-exclude) > + (when interact > + (message "Current project is blacklisted!")) > + (when interact > + (message "Current project remembered")) > (project--remember-dir root no-write)))) > > (defun project--remove-from-project-list (project-root report-message) > LGTM, Maybe it is better to also add a message to indicate that the project is already remembered, this would avoid having to re-remember the project. #+begin_src diff @@ -1992,13 +1992,22 @@ project-remember-project 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 (list (project-current t))) + (let ((root (project-root pr)) + (interact (called-interactively-p 'any))) + (if (and (listp project--list) (assoc root project--list)) + (when interact + (message "This project is already remembered")) + (if (seq-some (lambda (r) + (if (functionp r) + (funcall r pr) + (string-match-p r root))) + project-list-exclude) + (when interact + (message "Current project is blacklisted!")) + (when interact + (message "Current project remembered")) + (project--remember-dir root no-write))))) =20 (defun project--remove-from-project-list (project-root report-message) "Remove directory PROJECT-ROOT of a missing project from the project lis= t. #+end_src --=20 - E.G via GNU Emacs and Org.
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 14 May 2025 23:33:08 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 19:33:08 2025 Received: from localhost ([127.0.0.1]:47738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1uFLb2-0004gL-6U for submit <at> debbugs.gnu.org; Wed, 14 May 2025 19:33:08 -0400 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]:57217) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1uFLay-0004fk-PG for 78099 <at> debbugs.gnu.org; Wed, 14 May 2025 19:33:05 -0400 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 673ED11400BA; Wed, 14 May 2025 19:32:58 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 14 May 2025 19:32:58 -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=fm2; t=1747265578; x=1747351978; bh=Oq7nXYud23GGqm5x+GAJBpcjYCKTGEBr219JXMuBwtQ=; b= JwBWk3JjS4gxZnLljt1CsmN2j6GC2zQpPKZMsgV4P9A375iLy6c0jzp78LCz5wNK bCO+6I8tsRiOoiVc5qjniwnUhiNbPkGKpidoD7jxg9py6k1792715uXjM7PX0DfB iEv/mlGP3gebk754HPwF6m2eVqjCKMufih5EQ+2WSV3mulEDdOGnicUTHCStz6cf oXDtY1w2nTR7BePA4AEJu1GEqan2p39cB3ggAUAFNAUcNjqxKKsjo/5uHCQOzwYV /Rx3n47Q+CbopgCiOsZU/ieC+Qc8JiWKIyiU/yLZrmYv0WjhZfj7LK9/HIJER70s 8Y2/9JP9lvEKzIvp0RAhpg== 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=1747265578; x= 1747351978; bh=Oq7nXYud23GGqm5x+GAJBpcjYCKTGEBr219JXMuBwtQ=; b=H gbJIxB/Y+YOmDNXAQcaVB5nSwWNFefy3Egb0mfD0VogeXUpa9eSaBnNo+HdTwhhn 1SPMuWFWOnrxOJpxIpWd4FCJoPKl7kzHG43PTTQ9TqkbVzRhoeC3V7iWRoSNKkyr h82QNi4c1SajQIk/ARWXJ2UlZbKvi947RbDq8Gc7iTsyQTj2NbY1XYrb+duP3O0L kO5KibaD5SSIJK+1SWQ7+nkjmjGQ2+0orcONyf4ptZmVk2jwp+xeOXOZwJJGePJn 2j/9Kz/h1Rq0pS6HckbMIb15EBfBJsZV9jOLMJFpG5jhjzKHOyiSdyfKFIRaSx6p 5IBB5KUZqi028D7vVAxhg== X-ME-Sender: <xms:KiglaAws8SPD1niGG2Uh4zCAuGxZasmubjoHDOnPeZuRYyR-OqY5Qg> <xme:KiglaESlSEahn2IlJJWi84vmVXDm7cQmRfBmBgWYrKfe-RS39A2FGBiXKjggx4h3a VaIeq5gVHEnLojfyjw> X-ME-Received: <xmr:KiglaCXOeXu9xhcJ_ADjDdSX_3LrUwTs21xuS2iTVbH0pXai2gz2LIJ6J6DQShscv2ti> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdekfeduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddt vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh druggvvheqnecuggftrfgrthhtvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeet veegtedthefhudekteehffeukeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht thhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvgheigedvieduieesgh hmrghilhdrtghomhdprhgtphhtthhopeejkedtleelseguvggssghughhsrdhgnhhurdho rhhg X-ME-Proxy: <xmx:KiglaOhvEWdxS7HgcvOWC_QVd1Fb6LOr5Ehwu--OvngBTNmYELt8dQ> <xmx:KiglaCDaGiNZZ4Y3OkkVIg6r11RhMx-ly5uEMVKIlxN-LEe2wCfWDw> <xmx:KiglaPI7zmhnUDSoQ3uxo1ZNWBEuDPkjzCJMNa1nJRctiOf7G2oNhA> <xmx:KiglaJCDYHukWLws0rI69PXQAIIZ55M1ZToeoAwbw82WPUVTlExccQ> <xmx:KiglaBxWvtV6D4UKS8InQ0QcDLDVnKUBiycQYGPPl1BOXRAiKnvNGNRw> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 14 May 2025 19:32:57 -0400 (EDT) Message-ID: <662f7c56-b7ee-4e3c-aa0c-a2df78d0f544@HIDDEN> Date: Thu, 15 May 2025 02:32:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive To: =?UTF-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> References: <87selt5pff.fsf@HIDDEN> <2a309194-4c60-4e3f-ae2c-0d67240c4b91@HIDDEN> <87frhq7ac2.fsf@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <87frhq7ac2.fsf@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78099 Cc: 78099 <at> debbugs.gnu.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: -1.7 (-) On 30/04/2025 03:38, Elijah Gabe Pérez wrote: >> On 27/04/2025 23:18, Elijah Gabe Pérez wrote: >>> + (interactive) >> Something like >> >> (interactive (list (project-current t))) >> >> should allow to keep PR a required argument. > Thanks, done: How about this? Modulo reindentation. diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 27b69277e81..e7ae7d282ab 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1933,12 +1933,18 @@ project-remember-project 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) + (interactive (list (project-current t))) + (let ((root (project-root pr)) + (interact (called-interactively-p 'any))) + (if (seq-some (lambda (r) (if (functionp r) (funcall r pr) (string-match-p r root))) project-list-exclude) + (when interact + (message "Current project is blacklisted!")) + (when interact + (message "Current project remembered")) (project--remember-dir root no-write)))) (defun project--remove-from-project-list (project-root report-message)
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 30 Apr 2025 00:38:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 29 20:38:16 2025 Received: from localhost ([127.0.0.1]:37542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u9vSp-0008Sn-Qm for submit <at> debbugs.gnu.org; Tue, 29 Apr 2025 20:38:16 -0400 Received: from mail-oo1-xc43.google.com ([2607:f8b0:4864:20::c43]:44110) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <eg642616@HIDDEN>) id 1u9vSn-0008SV-Bz for 78099 <at> debbugs.gnu.org; Tue, 29 Apr 2025 20:38:14 -0400 Received: by mail-oo1-xc43.google.com with SMTP id 006d021491bc7-603f54a6cb5so4190395eaf.0 for <78099 <at> debbugs.gnu.org>; Tue, 29 Apr 2025 17:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1745973487; x=1746578287; 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=Np98Y7F5YQ/Usgvy7GVoD/wRo9aIh49uKV/BMcT/g9U=; b=k5mcl/fDojwz6IdTPQm7AC+4WAujS/TAmQjCOPAI0pZ3Hipwa2Rs5koVhryp4OEgks jhmUymfYu8d5C82QRcOEtX7Hi/FBPoPzbS2yIcmmFPGzzMzOfuIKyI1WVDzZXq57y2LR /bdJf6JuZOUuhWOkVj41sin9IdELhOCclAXgUngDUJhq+8XfcKjN7jW9BY1PBiRfjB07 GuouYAaP4in4NuTB1vl24BhbVMOFJ7lueFaMci7uZvgz8BpLhnXTTuPEKZvuv3I984tc BkquTWKqLfDRyOIH2vZcUqhKXEWoN6CpN9sbPq9wTLfjm1Iw8nMwitb2/BOVtEdDur1s U1QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745973487; x=1746578287; 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=Np98Y7F5YQ/Usgvy7GVoD/wRo9aIh49uKV/BMcT/g9U=; b=TxwLToJI9kk5nrczgBcIJikS0ukp3s+iUOgrp/BKEpnsDTzO2i5czNeuIX19gSaps9 hyifTe6JkjlMiXZMcKwNBFGUTK3Y+E6QILatkCWQ9o1LYWX1krj2QL+O2NbvBCOuh3oO Mj6p0FH6zlt2h/mZ3PebZ1UFma2P7iJoY2T/oWnHBVpi7xWF5Ixts95UCqPUp6DdAq0Z YHE2KCm2IgP4PTZxjsGMMi6xCb8rhSY6TQcNygbgXsLfVqmIJOHAa86JOASaObxIwr0j jtvrUNEEh/1g0nN6fPhEbsIZhrzrypnHscCk/rB+XM3x5xAbb7yNPwq+uCN/SL91s9Ff C4Pw== X-Gm-Message-State: AOJu0YzOHgrKMFDKs9y6EW1lJIaaXHatO3Uq1BBycoY8iOrZsvEcX8bD 1ZZ/wd5sKJLsIDvBj3aVX125G2Y5K3YhqCk6f2lsPR5KHQMAp/8bQx7vSNK6 X-Gm-Gg: ASbGncu0E+JWGLrgc6aVWdMeB7f37WY0vI+Bh2DAzHRVYiTZ710V+Q1Hsy0trwOlBI6 lLRh/0vrece3O661HMDYLW/TN45B5Vpd/tIoieif8piPB6XfZ+bgBU7PipW6uifBsiWwrdoHqwQ ONDJKaob1sc2B/jVXnZwGJpNM/Bg28BU6A6PX3MPyYJwutVEhjB3fntr8nTbuax0RtIft+d9cj/ OJB0eC37etUcNP2TUw9bqMuHKzAXn3ziSlO14Kqnp756LirFuHkfmXRzxonDKNyhWuxI0ok0BtM wxzZMFGJ X-Google-Smtp-Source: AGHT+IGKhm3mpRzrvmKPsOcNLaVb2Fa3IT4IYm0yOEwAtY5+ahRZULRBWanQcFwR1r8hGSmguGc69A== X-Received: by 2002:a05:6820:3098:b0:603:f191:a93c with SMTP id 006d021491bc7-607d449300fmr838951eaf.6.1745973487090; Tue, 29 Apr 2025 17:38:07 -0700 (PDT) Received: from fedora ([2806:10ae:e:8863::1]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-60686fdb075sm516797eaf.28.2025.04.29.17.38.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Apr 2025 17:38:06 -0700 (PDT) From: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> To: Dmitry Gutov <dmitry@HIDDEN> Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive In-Reply-To: <2a309194-4c60-4e3f-ae2c-0d67240c4b91@HIDDEN> References: <87selt5pff.fsf@HIDDEN> <2a309194-4c60-4e3f-ae2c-0d67240c4b91@HIDDEN> Date: Tue, 29 Apr 2025 18:38:05 -0600 Message-ID: <87frhq7ac2.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-Debbugs-Envelope-To: 78099 Cc: 78099 <at> debbugs.gnu.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.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Dmitry Gutov <dmitry@HIDDEN> writes: > So your scenario is to add a project but not do anything else > project-related with it, at that time? Yes, so for not to break the default project-remember functionality. In any case that's why exists the other project commands. > On 27/04/2025 23:18, Elijah Gabe P=C3=A9rez wrote: >> + (interactive) > > Something like > > (interactive (list (project-current t))) > > should allow to keep PR a required argument. Thanks, done: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Make-project-remember-project-interactive.patch From 60b1f5200ab82daaad3ea841feacbc7d78b37f83 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..6b386914899 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 (list (project-current))) + (if-let* (pr + (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 "There is not a project here!")))) (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. --=-=-=--
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 29 Apr 2025 01:41:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 28 21:41:28 2025 Received: from localhost ([127.0.0.1]:41339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u9ZyS-0005gM-CR for submit <at> debbugs.gnu.org; Mon, 28 Apr 2025 21:41:28 -0400 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]:43163) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1u9ZyN-0005fQ-AE for 78099 <at> debbugs.gnu.org; Mon, 28 Apr 2025 21:41:27 -0400 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfhigh.stl.internal (Postfix) with ESMTP id A85FF254019E; Mon, 28 Apr 2025 21:41:17 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Mon, 28 Apr 2025 21:41:17 -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=1745890877; x=1745977277; bh=O8bgKh1XPOJs6aPMU0Fq0YFlQ9TWuaGe3jgGAVxqNlE=; b= MRcEamnisC5YEtYBAj4TQ9iy+62Yzlo++JafefEK7RgAz/5QRgzREU2pY7XPLTK5 uQrg32iPI5sfFUF/LkAkUjus0MMrbrQRKXuBohOGTt2e7hYUawrkmSCzudFCH238 PrzWZjNe4UowKJHPvoiZDp7IG9goUABufTM/8SVj8fHBmiJQXBMZXDZEQprAzTcR EjoOeJctNiywYmFuOkKLN0087/uusfCjKtBVEXUJ28E36GmPz0qfDvEC3+LYomXs ov9g3ju0FyggOipUWYq+fLpgoKuinLXtWmpT/ghRQBUmf1rD8+5FLFA0YKJI6V10 UXioxAbsNoPp+zyj1I+GBQ== 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=1745890877; x= 1745977277; bh=O8bgKh1XPOJs6aPMU0Fq0YFlQ9TWuaGe3jgGAVxqNlE=; b=L UzW7tFxcII9mTKUuYxOpLyDL+5lzj6sGdWDh9JJxOQRBdaL9G7dsNbTrxwmB75F7 tYr9MS2/pCL5N9X3vofNYcBRiDBr18CC2B9jZ0HKQX+szDd/5vsgVnNICS801Igl PSkl/N+5r9yDdqwUkw7euquhQIj2NVHHmwATSu8Su5a+CAoxMlsEJyq8+4OQeHll M4SVmKjKcqBurX0dI0QheZ/KSH37BEdXjx6pVXHga4bhBDTno4gJ7kKab1S/fRQS Zx0Xn3sNewnsRbsTK+l2TztaNoDu4Z3kCOxbgIBpxNlbKOtkUT/Z0XUdvEMpbDUz 9TAvQkrOMUC36FU+j6jlA== X-ME-Sender: <xms:PS4QaMJ5tAYpoeDSAUKCXtWfK882aMnV54vqjr4q9ljpTNnt8kg1WQ> <xme:PS4QaMI_CsPaWji6AHKL_wHOnGKe5dg5VUasGE5Wp6BLPSSdQg_G5AG3V6zJIPlOP VpC8CEp2OejFcIQkeM> X-ME-Received: <xmr:PS4QaMvJ3ToHgGJv-HPkwoZuQviNJb2paW2MdnD-xySMHIs8VA-0Ip48IyBqTh4aGYXs> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddviedvheefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddt vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh druggvvheqnecuggftrfgrthhtvghrnhepgeelfeetkefghfdvhfdtgeevveevteetgeet veegtedthefhudekteehffeukeeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht thhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvgheigedvieduieesgh hmrghilhdrtghomhdprhgtphhtthhopeejkedtleelseguvggssghughhsrdhgnhhurdho rhhg X-ME-Proxy: <xmx:PS4QaJa5wqnLVq7pY1C1Sga1Mlk_R7Un1gAuCbc_grO8c6p3Ah0F9w> <xmx:PS4QaDaNMaFos8HufC5IZnE6_TBIhTRfk0wpjC6sRLqeI7ww5WJ7ag> <xmx:PS4QaFBApqmC6rYpDLuyYFp8czHmtEZbnFK_rmFnszw0yZaH8-4sSQ> <xmx:PS4QaJbT7rUEsqEthot013SIeCe0SXjBw2DHY9sKeHpmPuMczr6fyw> <xmx:PS4QaHzY4PcvS_vwhRxQ9YPy_bgKCeyF5aTyO-ISZqTP1dTUmjxNFXr4> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Apr 2025 21:41:16 -0400 (EDT) Message-ID: <8f0f4274-e455-45fa-91d5-9cd18a899b85@HIDDEN> Date: Tue, 29 Apr 2025 04:41:15 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive To: =?UTF-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> References: <87selt5pff.fsf@HIDDEN> <ef45161c-bd46-4245-b3f2-8b91c38e21ef@HIDDEN> <878qnl2knw.fsf@HIDDEN> <5a920aa6-4f8b-49df-8cf4-1d9ad16e2072@HIDDEN> <CACnP4NLotHwuKKdN2pyrugUSHev1uQVtBmTeUwttWY1erPRJYw@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <CACnP4NLotHwuKKdN2pyrugUSHev1uQVtBmTeUwttWY1erPRJYw@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78099 Cc: 78099 <at> debbugs.gnu.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: -1.7 (-) On 28/04/2025 07:34, Elijah Gabe Pérez wrote: > 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. So your scenario is to add a project but not do anything else project-related with it, at that time? That's fine, I suppose. > In this case, the feature just display a message > whether if project was indexed or not (if called interactively) No problem with that.
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 29 Apr 2025 01:39:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 28 21:39:29 2025 Received: from localhost ([127.0.0.1]:41301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u9ZwX-0005N5-H7 for submit <at> debbugs.gnu.org; Mon, 28 Apr 2025 21:39:29 -0400 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]:50001) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1u9ZwS-0005LM-Vj for 78099 <at> debbugs.gnu.org; Mon, 28 Apr 2025 21:39:27 -0400 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id BE1071140294; Mon, 28 Apr 2025 21:39:18 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Mon, 28 Apr 2025 21:39:18 -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=1745890758; x=1745977158; bh=Vsc/xduavKU8Y+7kffuSJAnZD91YmnlrmpwFp2HmmuA=; b= YabXUjZ8n4a3KByYJQXmoF5iPSm66vbfGdosDvuHUGhPc2LKMarN6guSsddN6DN8 Llq6MEUARvSJORRd18R+TBXKFMMSA9uq2LXgkbD/Ekopu+lcl8s4+4jMFZ7JYAGw vpHtPjANetPoZGS6kG1T/SUTOCZEZ3GsJB96zyE9FAHay38Y2HGwpzRuKATjgfoB p18bMWXX4QZ+FjaNzjHw2bEKt0ezRcskGpwSF03YpWgWks+32kFVWUOSRPylVn5y m5gAxCVoiHNjyOaCyvZAQaD+IHu6jp6yVUa5c9R2+miGI+mOoMmkqsHQo9LqosOt k8x1CxS8HopXk5PcCQjLVA== 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=1745890758; x=1745977158; bh=V sc/xduavKU8Y+7kffuSJAnZD91YmnlrmpwFp2HmmuA=; b=aWzrmRbudaBvHRMyp e6p47LoOiEIWLBWhCyDULx+mOpFrX3FCksAqU3A8tSc6G9j7JkbQcA13UO287S8O 9ynqSN4rz2DLQK4wX5J2XK5fWkvxjNHcp/ON7HpZxkuNWQmJvvzXJeBI54+RTv4H iRDmujiKXKQPg1027O/Gy8Z468qXOQVVDyOAI5+KrqHGy+Ix8SE6yXac/KMWlqk3 WhC5lBIhCXnmhxaVY0CWxWp7Qrg9xQj3uNqi4ev4ooDbEbTJh2odK5E46ge+bY5R F5ZXO3swng6CRAfItSwzt+sRl2Hi+At/FBcAIBIFJRFgmWTMysagYc+q3/STfIJS puKMg== X-ME-Sender: <xms:xi0QaF_QfB_jOfEstyYUTawZtRrX5BX0sDAjodn2ZA0MjPuai9sQSg> <xme:xi0QaJsu5ExuYuqyG6dpXRxo2ebcEkTdZsmFQrl5uW7cfuhPU150ed-FA1Sr9bbLJ 0uxvvbLTPqiS9_q8Jo> X-ME-Received: <xmr:xi0QaDBySxe2W-gPjKi4Ibuqed3Xmf8IYjCdgyncC8p9_9N3wCoTItiI8ZIZyAjU5j_1> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddviedvheefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddv jeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrd guvghvqeenucggtffrrghtthgvrhhnpeegueegteffuddvjeevvdelleeitdeftdduhfef feffjedukeevjedvfeffgfevgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthht ohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghgieegvdeiudeisehgmh grihhlrdgtohhmpdhrtghpthhtohepjeektdelleesuggvsggsuhhgshdrghhnuhdrohhr gh X-ME-Proxy: <xmx:xi0QaJcq2twuJKHkpOV30ICdGVdMJr_nF2SJPcnIvmLVD1Qh5FbPMQ> <xmx:xi0QaKOQn3z9cG3YhwG4IIO0T2_59-bHQZWq9YA2KN0Ia5rXqLELKw> <xmx:xi0QaLmjDZ3JMYatYs6C-Qocf5zD0pMAXS-CuCGV0DW9f_4oT6S0fg> <xmx:xi0QaEt9EO9Abm5i-rqOV1glUYOuHfXqOWYguec4DtrB9trd8WtU5w> <xmx:xi0QaOHtFew-0z3TG6DDCcBkS3ypXdGL_hR7FSTrEmfGkVxF1C1qRyfj> Feedback-ID: i07de48aa:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 28 Apr 2025 21:39:17 -0400 (EDT) Message-ID: <2a309194-4c60-4e3f-ae2c-0d67240c4b91@HIDDEN> Date: Tue, 29 Apr 2025 04:39:15 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive To: =?UTF-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>, 78099 <at> debbugs.gnu.org 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-Debbugs-Envelope-To: 78099 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 27/04/2025 23:18, Elijah Gabe Pérez wrote: > + (interactive) Something like (interactive (list (project-current t))) should allow to keep PR a required argument.
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 28 Apr 2025 15:21:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 28 11:21:58 2025 Received: from localhost ([127.0.0.1]:59797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u9QIt-00033p-7f for submit <at> debbugs.gnu.org; Mon, 28 Apr 2025 11:21:58 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:dc4:8::227]:52961) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1u9QIp-00032m-Bv for 78099 <at> debbugs.gnu.org; Mon, 28 Apr 2025 11:21:52 -0400 Received: by mail.gandi.net (Postfix) with ESMTPSA id 0B2A74391D; Mon, 28 Apr 2025 15:21:41 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Elijah Gabe =?iso-8859-1?Q?P=E9rez?= <eg642616@HIDDEN> Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive In-Reply-To: <87selt5pff.fsf@HIDDEN> Organization: LINKOV.NET References: <87selt5pff.fsf@HIDDEN> Date: Mon, 28 Apr 2025 18:03:34 +0300 Message-ID: <87o6wg2zup.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvieduvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopegumhhithhrhiesghhuthhovhdruggvvhdprhgtphhtthhopeejkedtleelseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghgieegvdeiudeisehgmhgrihhlrdgtohhm X-GND-Sasl: juri@HIDDEN X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78099 Cc: Dmitry Gutov <dmitry@HIDDEN>, 78099 <at> debbugs.gnu.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: -1.7 (-) > 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) For the same purpose I added an advice to functions like 'read-directory-name' and 'vc-dir' with the trick to call 'project-current' that remembers a new project: (define-advice vc-dir (:after (dir &optional _backend) add-project) (when (featurep 'project) ;; Add current vc project dir to project list (let ((default-directory dir)) (project-current)))) But maybe `project-remember-project' would be more correct to use here.
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 28 Apr 2025 04:34:26 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 28 00:34:25 2025 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: =?UTF-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> Date: Sun, 27 Apr 2025 22:34:03 -0600 X-Gm-Features: ATxdqUF1z2KWwM3hpNStBs73InThHAMXmE0_DqJ6rcUSx2WQ1fylonyiY4F02uo Message-ID: <CACnP4NLotHwuKKdN2pyrugUSHev1uQVtBmTeUwttWY1erPRJYw@HIDDEN> Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive To: Dmitry Gutov <dmitry@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000040da400633cf3275" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 78099 Cc: 78099 <at> debbugs.gnu.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.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 <<a href=3D"mailto:dmitry@HIDDEN">dmitry@gu= tov.dev</a>> 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> > For example, visiting a new file (usually with `find-file') or imp= orting<br> > and opening a new project, you cannot be sure if it is already in the<= br> > project--list (or it was not added to project-list) unless you do<br> > `project-switch-project' (which automatically index it), projectil= e have<br> > a similar behavior (projectile-auto-update-cache), but it's very s= low, so<br> > one way i had to mimic this is this way.<br> <br> You're right. For it to be added to the list, you'd have to invoke = a <br> command in it which uses projects at least once (for example, <br> project-find-file, 'C-x p f').<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--
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 28 Apr 2025 00:35:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 27 20:35:39 2025 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 Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive To: =?UTF-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> 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-Debbugs-Envelope-To: 78099 Cc: 78099 <at> debbugs.gnu.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: -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.
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 28 Apr 2025 00:29:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 27 20:29:36 2025 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: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> To: Dmitry Gutov <dmitry@HIDDEN> Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive 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-Debbugs-Envelope-To: 78099 Cc: 78099 <at> debbugs.gnu.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.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.
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at 78099) by debbugs.gnu.org; 27 Apr 2025 22:55:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 27 18:55:04 2025 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 Subject: Re: bug#78099: [PATCH] Make 'project-remember-project' interactive To: =?UTF-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN>, 78099 <at> debbugs.gnu.org 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-Debbugs-Envelope-To: 78099 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?
bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 27 Apr 2025 20:18:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Apr 27 16:18:28 2025 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: =?utf-8?Q?Elijah_Gabe_P=C3=A9rez?= <eg642616@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: [PATCH] Make 'project-remember-project' interactive X-Debbugs-Cc: Dmitry Gutov <dmitry@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-Debbugs-Envelope-To: submit 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. --=-=-=--
Elijah Gabe Pérez <eg642616@HIDDEN>
:dmitry@HIDDEN, bug-gnu-emacs@HIDDEN
.
Full text available.dmitry@HIDDEN, bug-gnu-emacs@HIDDEN
:bug#78099
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.