From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Mar 2021 23:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 47287@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161628292129824 (code B ref -1); Sat, 20 Mar 2021 23:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2021 23:28:41 +0000 Received: from localhost ([127.0.0.1]:53318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNl1N-0007ky-EN for submit@debbugs.gnu.org; Sat, 20 Mar 2021 19:28:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:38676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNl1H-0007kj-TU for submit@debbugs.gnu.org; Sat, 20 Mar 2021 19:28:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNl1H-0005cL-HF for bug-gnu-emacs@gnu.org; Sat, 20 Mar 2021 19:28:35 -0400 Received: from out2.migadu.com ([188.165.223.204]:44658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNl1C-0004eY-GC for bug-gnu-emacs@gnu.org; Sat, 20 Mar 2021 19:28:35 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616282906; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=aC2YULsA2mZZ2rPJgR+eJFMTy+E1tzxp4MkZBgEq+g8=; b=ADrBrgj9aNIctnEGSsylXiCgcRCFcRRxaWcD0CVRpktGOEIxxZGOwmJkecZ/kwpkHczgwn Df4RYMSxejCwjrP2+mEDCexi7+IMkilQUS+gfpTxc+DwI9F7RIhY8w5wFXxzkryozW7FR6 /rY/Hn4Ny7TuQCHtfh2kypwdaV+76K7+fj2Mzcbkj6Luoy5QQE9BoGPxkjrEheSCIUi91B ajgB/s1apUNEW2SjyRgaTBUsTtL5wu6nGVuVuR2PTrigONKiWkvxmzRMKAi5laZ3nWKa31 nGImoagkeAZaLT5LvpR/SBFhOOaYSZn1psQiqbCk18QScAJKG729BIi/vb/DFw== From: Theodor Thornhill Date: Sun, 21 Mar 2021 00:28:24 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no Received-SPF: pass client-ip=188.165.223.204; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Hello! This patch adds an interactive command 'project-remove-known-project', that lets the user interactively remove a project from the project list. My usecase is that sometimes when a directory is moved, the project isn't deleted from the list. This command is modelled after the already present 'project--remove-from-project-list', but that function isn't interactive, and also has a specific purpose. I did not add a binding, nor add it to the project-switch-commands. Unsure if deserves a spot there :). -- Theodor Thornhill --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-command-project-remove-known-project.patch >From 60992f4f6c4a7e9bc876f5546e7316f3fea0bf59 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Sun, 21 Mar 2021 00:23:28 +0100 Subject: [PATCH] Add command project-remove-known-project * etc/NEWS: Add information about new command. * lisp/progmodes/project.el (project-remove-known-project): New command that allows deleting of known projects from the project list. --- etc/NEWS | 5 +++++ lisp/progmodes/project.el | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index c602166397..20017ea30b 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1573,6 +1573,11 @@ project's root directory, respectively. +++ *** New user option 'project-list-file'. ++++ +*** New command 'project-remove-known-project'. +This command lets you interactively remove an entry from the list of projects +in 'project-list-file' + ** xref --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index bd552c917a..a9db511b46 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1228,6 +1228,17 @@ from the list." (message "Project `%s' not found; removed from list" pr-dir) (project--write-project-list))) +;;;###autoload +(defun project-remove-known-project (dir) + "Remove directory DIR, a known project from the project list. +Announce the projects removal from the `project-list-file'." + (interactive (list (project-prompt-project-dir))) + (project--ensure-read-project-list) + (when-let ((ent (assoc dir project--list))) + (setq project--list (delq ent project--list)) + (message "Project `%s' removed from known projects" dir) + (project--write-project-list))) + (defun project-prompt-project-dir () "Prompt the user for a directory that is one of the known project roots. The project is chosen among projects known from the project list, -- 2.24.3 (Apple Git-128) --=-=-=-- From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 00:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill , 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.16162864432912 (code B ref 47287); Sun, 21 Mar 2021 00:28:02 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 00:27:23 +0000 Received: from localhost ([127.0.0.1]:53348 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNlwB-0000kt-3m for submit@debbugs.gnu.org; Sat, 20 Mar 2021 20:27:23 -0400 Received: from mail-ej1-f50.google.com ([209.85.218.50]:44653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNlw6-0000kZ-0V for 47287@debbugs.gnu.org; Sat, 20 Mar 2021 20:27:21 -0400 Received: by mail-ej1-f50.google.com with SMTP id b9so15493283ejc.11 for <47287@debbugs.gnu.org>; Sat, 20 Mar 2021 17:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=htcKxdGQNnIa8ckvq+h7G/X/mRj7PyjSiJdmPoJMcjc=; b=P3RkVtdG1QE4ndAgIvfKscd7sJRviDLKe8+oK5xR+1kqiU9IOsiQCMfhVFoqwZLese qWUjmXe3CGMW5pqtThZ4pENUqKFpxmrafUSWMn3/kMqURENs9wOkQs5jiB8eCERsY9G/ sPcCYpWnQSpsLhbVsnNZApPALv5DxqNYBDue5H9KkTQq71W0w2rxUY6LdUfdkFllc1wv KZQGoBjMpm5nTzEE97dSWVG0HkAPiV5+bwIBJjd55S9mGL0aeeiQhXhGl7RwIJ+ANbI1 D1fYBNyYl0EPyVMVgRM5IzWLvNxfUk79wjouInb53DuPmA+yNzgNMk5+IjHwBUgUDE8l aRMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=htcKxdGQNnIa8ckvq+h7G/X/mRj7PyjSiJdmPoJMcjc=; b=cpMaa4cY4mZdigo27/pNhV9XyxDcsJbxObPVq6gxK/BbtbVs3BW76UDeeFj2DmPc0P C8IZWJnXjaEZz6FFnG2m9rk2YGTUoOw1k/YPfGdmMDkWG2EYV0jzwNMxkz1BH4c+GzwK 3qX+DZu8ydK0+mFdG3T9zCgc8jKlcru7IRD2xuGEN8WhO9lQSyzEztt2BSp51axjSx5t EXwVoYv4P1cGtEEZO3elRD6P1SHwa+l8wjPpiTlYq3lYp5sYKR40ekM5EeU2lnQL/AOD 7L0jf1Aw15hZe8PFyd18JxCGvaAmuDdpNVPv/hdsNmWrGm+hBeuNKaFycGo+qNxTlCtT sKKQ== X-Gm-Message-State: AOAM5339duV83PChzHwqk5VCLtqotVgGsv2bzNB+E3qF2BXtNxqkdIB+ GTRekzu+3n0tu52QkxAW6llxvu86PCc= X-Google-Smtp-Source: ABdhPJyrZeXKqWDq68v27RCjzfAYUKaCGgm1P2ahyw431ADC0iuMAqYGMAtlt7AN/zOvyQHzhNobgA== X-Received: by 2002:a17:907:2093:: with SMTP id pv19mr12210132ejb.134.1616286432097; Sat, 20 Mar 2021 17:27:12 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id m9sm6125084ejo.65.2021.03.20.17.27.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Mar 2021 17:27:11 -0700 (PDT) References: From: Dmitry Gutov Message-ID: Date: Sun, 21 Mar 2021 02:27:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi! On 21.03.2021 01:28, Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > This patch adds an interactive command 'project-remove-known-project', > that lets the user interactively remove a project from the project > list. My usecase is that sometimes when a directory is moved, the > project isn't deleted from the list. What if we added an "inventorization" step in project--ensure-read-project-list? After having the list read, it could remove entries that do not exist anymore (and, if the list has been modified in this procedure, call project--write-project-list). This should take care of moved directories, at least once per Emacs session. > This command is modelled after the already present > 'project--remove-from-project-list', but that function isn't > interactive, and also has a specific purpose. If the logic described above still doesn't satisfy your needs, let's add a command, sure. > I did not add a binding, nor add it to the > project-switch-commands. Unsure if deserves a spot there. I don't know about a binding, but certainly it's not for project-switch-commands. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 06:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161630745611560 (code B ref 47287); Sun, 21 Mar 2021 06:18:01 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 06:17:36 +0000 Received: from localhost ([127.0.0.1]:53455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNrP6-00030N-2z for submit@debbugs.gnu.org; Sun, 21 Mar 2021 02:17:36 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNrP4-00030A-61 for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 02:17:34 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35998) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNrOy-0003gY-Q0; Sun, 21 Mar 2021 02:17:29 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3973 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lNrOy-0006hV-4E; Sun, 21 Mar 2021 02:17:28 -0400 Date: Sun, 21 Mar 2021 08:17:30 +0200 Message-Id: <83v99lav45.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (bug-gnu-emacs@gnu.org) References: X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Date: Sun, 21 Mar 2021 00:28:24 +0100 > From: Theodor Thornhill via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > This patch adds an interactive command 'project-remove-known-project', > that lets the user interactively remove a project from the project > list. My usecase is that sometimes when a directory is moved, the > project isn't deleted from the list. Thanks. I'll let Dmitry and others comment about the command itself, but a couple of minor nits, mainly regarding documentation: > ++++ > +*** New command 'project-remove-known-project'. > +This command lets you interactively remove an entry from the list of projects > +in 'project-list-file' > + The "+++" mark means that the manuals have been updated for this change, but the patch doesn't include any change for the manuals. If this command is accepted, I do think it should be mentioned in the user manual. > +(defun project-remove-known-project (dir) > + "Remove directory DIR, a known project from the project list. This sounds somewhat confusingly: is DIR a project or a directory? Can this be rephrased to avoid the confusion? > +Announce the projects removal from the `project-list-file'." ^^^^^^^^ "project's". And I'm not sure this part is needed in the doc string. And the message itself perhaps should be suppressed if the function is called non-interactively? > This command is modelled after the already present > 'project--remove-from-project-list', but that function isn't > interactive, and also has a specific purpose. So why doesn't your implementation call that function? From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 06:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161630841812994 (code B ref 47287); Sun, 21 Mar 2021 06:34:01 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 06:33:38 +0000 Received: from localhost ([127.0.0.1]:53460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNrec-0003NW-Je for submit@debbugs.gnu.org; Sun, 21 Mar 2021 02:33:38 -0400 Received: from out0.migadu.com ([94.23.1.103]:19961) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNreW-0003NJ-Ns for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 02:33:37 -0400 Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616308411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9c2m7m48I+57Db3MKH96UmkqpVQTK6WgMjvZInmu82w=; b=TrFLO3FCV7Uhg3pY6QZNSfXhZOng6Tekvg+2Nki0l0TSa+TuDRtM7AwjJbESvNx3CbePJg j2iMqmP8exKi3ZDCHd903NxYmWlSklhFt7GjnHK3Wh5ZWKVCjNfudnAfvqjUvdalalS+Bl XF0HGNAthiTnvAPiPWC/U5fnjq3JUT5FmlvLoIeeeo8pvohLGjouBlZGhWt/pESg4mMPyf 9wxCfuBt/TeWabXh7mYHfuCcF1cwN+O8wmsQA0aVmdB1s9gOVDry4kWLDTwtF0+bQ7P3U5 pBCCBUNGhzGrJaW5qdXlaVXxWtx98+VQ/cManUp3/eTtWhSuPMmM7uT0WIu0/A== Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Theodor Thornhill MIME-Version: 1.0 Date: Sun, 21 Mar 2021 07:33:28 +0100 Message-Id: <06BAC477-828A-42E7-951F-ADD88E931354@thornhill.no> References: In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) >> This patch adds an interactive command 'project-remove-known-project', >> that lets the user interactively remove a project from the project >> list. My usecase is that sometimes when a directory is moved, the >> project isn't deleted from the list. >=20 > What if we added an "inventorization" step in project--ensure-read-project= -list? After having the list read, it could remove entries that do not exist= anymore (and, if the list has been modified in this procedure, call project= --write-project-list). >=20 > This should take care of moved directories, at least once per Emacs sessio= n. >=20 Yeah, we could! However, there is one more use case: at work we have lot of r= epos, some I touch every day, some once in a blue moon. I do not want them c= luttering the project-list, so I would rather delete them, and have them au= tomatically appear for periods where I actually use them. Same with other FO= SS projects I only ocasionally contribute to. These are directories I usuall= y dont delete from my drive.=20 >> This command is modelled after the already present >> 'project--remove-from-project-list', but that function isn't >> interactive, and also has a specific purpose. >=20 > I don't know about a binding, but certainly it's not for project-switch-co= mmands. Agreed :) =E2=80=94 Theo= From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 06:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161630871313437 (code B ref 47287); Sun, 21 Mar 2021 06:39:01 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 06:38:33 +0000 Received: from localhost ([127.0.0.1]:53466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNrjN-0003Uf-7F for submit@debbugs.gnu.org; Sun, 21 Mar 2021 02:38:33 -0400 Received: from out0.migadu.com ([94.23.1.103]:22588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNrjK-0003UW-HI for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 02:38:31 -0400 Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616308710; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5jAGF50RLpPeW2CqH1DdS7VFIrHLBHuwI8XO9Eitauo=; b=X8gZ9jgYa8kyK/4TQpi9mttILmrRErHQroYB5BHA1g2cdIKRmu2/FL4fSLTqeL/QSy4PGB LMrmMdbLTsF8F0+plBtIghRMmqWPAzdrATo1xzwV1GNWXyzPsyAVzf1oZG5kzmQQKGERX2 ddxQKOAooypNblPkm7fuq537VLRracyRHV+i9fu4jtrPIRiBITemUhAcSn9POdJ2YuU2Ib iA+Z55gmWnS4HjsTAzxMrr1gbVDSbvirgzqsJ6uzQ16eUJoXB5NiCASgfpRBF/E4dTAWlR orLEH/z2wM28+UJw+T5bPjgpEmrxN+//hznC7VFhwcxAcFjLoD4GTcQYrOEizA== Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Theodor Thornhill MIME-Version: 1.0 Date: Sun, 21 Mar 2021 07:38:28 +0100 Message-Id: <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> References: <83v99lav45.fsf@gnu.org> In-Reply-To: <83v99lav45.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi and thanks for your comments - I will address them in the next patch. >> This command is modelled after the already present >> 'project--remove-from-project-list', but that function isn't >> interactive, and also has a specific purpose. >=20 > So why doesn't your implementation call that function? Mainly since the message seems specialized, and I didnt want to alter existi= ng, used behavior. It isnt the best reason, and I can alter it if we want :)= =E2=80=94 Theo= From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 11:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161632698726076 (code B ref 47287); Sun, 21 Mar 2021 11:44:01 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 11:43:07 +0000 Received: from localhost ([127.0.0.1]:53671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNwU6-0006mV-RD for submit@debbugs.gnu.org; Sun, 21 Mar 2021 07:43:07 -0400 Received: from mail-ed1-f44.google.com ([209.85.208.44]:42580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNwU4-0006m0-Fy for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 07:43:06 -0400 Received: by mail-ed1-f44.google.com with SMTP id l18so7770425edc.9 for <47287@debbugs.gnu.org>; Sun, 21 Mar 2021 04:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=LBSch5xSXCQz+3U5jkpDEBAtkthLxocIV2QlTn18z5A=; b=X36iHu8F6NqDm2YZ5yXE5d+P8MCNFSHYilGDw98aeTgkRXK60IR1JFvJIEVzDjXb+A +zm2fBrGs2vDIXHolHcHj79SqS4PylX6YGqzuiZ8bns/+k/qu4D4eJ/ocy8/vjJb4aia xK5HV64USqD449SpRK9uXHpuAjw3E6CgsM2eyXuNiA5PCb0E/JMNK5LWudKWRTKtsvFU LCkbHM1DRTV5cDdfzqL4/o0ivzFYZD3Fz3TV8RD/HTu8tx//KTg0ab6IGZaRCCRn0axu cds6RX5DscoGfI/nk0W/dSfBFRnpD0wJw/oWm1vL2ChBMK0822HYyejdcK8lvmFw/2nc ht6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LBSch5xSXCQz+3U5jkpDEBAtkthLxocIV2QlTn18z5A=; b=ag5S/Gs8Lc1u9mp7Nd4dHQ3GjuDb1uY8C0/vzrDwA2d5KkTVflYIg3eGiOUvq/WVuO kIX6vPQ2s//j1tvQfKKgWwqrLIndVhyT9AHl3drOLo4bYBMNpqABZtoZ/JWHQVchfnQI ncRk/yBqCR56Fy8+7p9xLsNbjqKoq5APSY3UKDwrDvyTEKXHH2lyU591faEuNgcMUsjQ 6+aLRrLDr5B7qGa+7ybY8XiiAchQZxkKblnzc/5EvEWVjtOlDhMlbJMs8iRx8Kv4ZwOL H7EodJEWTZC05wTUOe5KXyUNLZvW3K721f6ciiyKYF8/6qbi5PaIVbKZwfvedAFTEv1b VWxw== X-Gm-Message-State: AOAM530AgMjhJa3fN5D9/ZXynUtuNwKNbg/gpjbucPaFij87BEG56sTd NqEmza6kDsXsed+sWfxDSARSi0EZ8X4= X-Google-Smtp-Source: ABdhPJxwR44c6ajp0wLmGDjbZPMs/ZXPVpdT2+/RINc2NtnZWNPf9S8QsGPmNNphnMDWbR8bxoYePw== X-Received: by 2002:a05:6402:30b9:: with SMTP id df25mr20524210edb.136.1616326978648; Sun, 21 Mar 2021 04:42:58 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id r17sm8145342edx.1.2021.03.21.04.42.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 04:42:57 -0700 (PDT) References: <06BAC477-828A-42E7-951F-ADD88E931354@thornhill.no> From: Dmitry Gutov Message-ID: Date: Sun, 21 Mar 2021 13:42:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <06BAC477-828A-42E7-951F-ADD88E931354@thornhill.no> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 21.03.2021 08:33, Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > However, there is one more use case: at work we have lot of repos, some I touch every day, some once in a blue moon. I do not want them cluttering the project-list, so I would rather delete them, and have them automatically appear for periods where I actually use them. Same with other FOSS projects I only ocasionally contribute to. These are directories I usually dont delete from my drive. Sure, makes sense. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 12:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill , Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161632874228834 (code B ref 47287); Sun, 21 Mar 2021 12:13:02 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 12:12:22 +0000 Received: from localhost ([127.0.0.1]:53686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNwwQ-0007V0-N7 for submit@debbugs.gnu.org; Sun, 21 Mar 2021 08:12:22 -0400 Received: from mail-wm1-f43.google.com ([209.85.128.43]:40924) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNwwN-0007Un-PT for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 08:12:21 -0400 Received: by mail-wm1-f43.google.com with SMTP id y124-20020a1c32820000b029010c93864955so9791825wmy.5 for <47287@debbugs.gnu.org>; Sun, 21 Mar 2021 05:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=C0T+RDDJo3M0Y6ostUgavXU9hQcZSz8uF6SRlet8/44=; b=t8AZq0DPjZdVUS4qAOc4yOgGUdthVcX0NqoJi2b6qo7ZeYCSooAkaHRXbTMCnWY1li M/xPQ/rDnGemSJ0ZLiRJrqlEoh0tnNwUlmrKgudPPPktNrqbhQiRVta+0+1eYKhjOoKs fAnwXS4Qcc9U0R/vxG9uSTKJ20zp1xe5m+lzaQD9moAfEl0sgVtBlgvu7J2WYE5Y+HrR bDIHbMswnHJnV9uFKQ96I48Z4aSzWlZGk2g3PR9E46zVaiPHbbh1rjpRUeN4VPnlNvHH FstzFUOlCyfxwJEcNv2B50ui1eBWKh4hyTJ9oFLuS5/j2tH4UOzAWfvKeXWIgUvCqEmZ lQBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=C0T+RDDJo3M0Y6ostUgavXU9hQcZSz8uF6SRlet8/44=; b=rmRtQRb++Zg6z7i1i7r4WoHJSSK/1EdzbcMLq38ruQ3JLxm24lMrvdnea4hAMcbbPF /SCWw7lS+B2R8c4q+HJ93dFdnYFGCA4Q2UeH09tm0N/wYLXrrFRcLr7fv6rsbOE842WO y+xbTJ+25TsjJQ+G/B5w7vIm+7GHDkg6Yu9PZJJDc2C1DGMf4OMcQE/a6NFEMW/E+7gG 2m3Fda31hdZfgSg03/ndWqRL0Vq2HRClNhsCYyVJ7HXZ8Yxn799pd9BF0UWG3QdSy/EI sxI+ookYxrcPPV/TlSMYbMwcUDyqcE6KTwfH9saX4EdWiMuIF5BQALP4jdityzmPeKyo xgJQ== X-Gm-Message-State: AOAM532nSFGlp1DDQdNyUqhhdXlorJV9h8jQbG6n7ZWpJ+AeJuDbhvhG fAB8Q7rSo6XATHM2ThLBF53oT3NDnUc= X-Google-Smtp-Source: ABdhPJx5PFO52zVJv+S01Hd3o3LS9LYE7WLWhBuqJOTvRo7089W2Gi7GRpQTVmBHM0ZwlIWgozYqXw== X-Received: by 2002:a1c:2587:: with SMTP id l129mr11592053wml.135.1616328733065; Sun, 21 Mar 2021 05:12:13 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id p18sm15924815wrs.68.2021.03.21.05.12.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 05:12:12 -0700 (PDT) References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> From: Dmitry Gutov Message-ID: Date: Sun, 21 Mar 2021 14:12:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 21.03.2021 08:38, Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Mainly since the message seems specialized, and I didnt want to alter existing, used behavior. Perhaps we can move the 'message' call from it to its current caller (project-current). From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 12:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov , Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161632893429168 (code B ref 47287); Sun, 21 Mar 2021 12:16:01 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 12:15:34 +0000 Received: from localhost ([127.0.0.1]:53698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNwzW-0007aO-MU for submit@debbugs.gnu.org; Sun, 21 Mar 2021 08:15:34 -0400 Received: from out0.migadu.com ([94.23.1.103]:56070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNwzT-0007aC-A5 for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 08:15:33 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616328929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=woPVstvgm4qAbm1J2Wu9crZZIPSant2AXHim6apDu4g=; b=Wisj5BYYor1NV6L5xKVTD9F89PqdPTejR878iMP+hExrgpFkVmgWiG5L5uxfUDsB4edoka X4TmUkbCvzyIfxnTv1j0rerSDf88JRclGoYcwiQ8NdzTCjwGc1WyB1TO49ZgK/rtrIL1oC e77BQh8/pZyedEHqPbeu3Y/PLJu+RLAmu11Z4A9UJZO6Rx9m2i2tpAw88E/qo0CREyjk+m Dxr1jGhpWFi672C1oBWqLxTCguzjmgFeoT0zy0S8ftLZT8xyZV6wqgLaDBVTUIqZZIQQQs u0gvY1TYb8DDA7y/4FxMG27D+aDgHMU8rHHMxeb3EZkWnLnwEpzdDRYwetRzKw== From: Theodor Thornhill In-Reply-To: References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> Date: Sun, 21 Mar 2021 13:15:27 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Dmitry Gutov writes: > On 21.03.2021 08:38, Theodor Thornhill via Bug reports for GNU Emacs, > the Swiss army knife of text editors wrote: >> Mainly since the message seems specialized, and I didnt want to alter existing, used behavior. > > Perhaps we can move the 'message' call from it to its current caller > (project-current). Sure! From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Mar 2021 23:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov , Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161636891118851 (code B ref 47287); Sun, 21 Mar 2021 23:22:01 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 23:21:51 +0000 Received: from localhost ([127.0.0.1]:55654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7OJ-0004tz-IM for submit@debbugs.gnu.org; Sun, 21 Mar 2021 19:21:51 -0400 Received: from out2.migadu.com ([188.165.223.204]:33185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7OF-0004tm-BH for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 19:21:50 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616368904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5KtHeZbUvVRJmtalMLXfqsGWQJMn2Mbhn3kXzQmlgec=; b=hi9X1BRn2UzgHs5jOWA2rcWg1TLXVGTwbJXXlEO66+ldnkNRIOTNnNO6uCn6FyBspZLlNB fAVUSIhzfxTQTcnn+XPvRUrZ68AXbFsfzqOjA+tkeSzDRKExvT8OMbY26xkhMNXMuGG01J C8XW9oW4GEKngV2UeRWgUFhTb+6IqE+SC8pqjseIGqKEYEUmWbRC+rc7GLX4wjUF3IeVRX HrxqNIosfTaimejnaMXlIjx7MEqXiAHeto6iDu9e9s8lH5t62gnwFhO7KLDoGySu2F/fc3 hdlXlBIttk/YnMEFAPsZ9MUsiEykKu0nm4m0T2wNwkw+RpNG95fDUXOzAn9J9g== From: Theodor Thornhill In-Reply-To: References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> Date: Mon, 22 Mar 2021 00:21:42 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi, >> Mainly since the message seems specialized, and I didnt want to alter existing, used behavior. > > Perhaps we can move the 'message' call from it to its current caller > (project-current). See attached, improved patch, hopefully adressing Elis comments, and using the already defined function. I did not yet add a manual entry. Does this approach seem reasonable to you? -- Theo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-command-project-remove-known-project.patch >From 45245b872982f50c2093fda0c797b6dad7d205ed Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 22 Mar 2021 00:19:23 +0100 Subject: [PATCH] Add command project-remove-known-project * etc/NEWS: Mention the new command. * lisp/progmodes/project.el (project--remove-from-project-list): Add new argument, report-message, used to signal various messages when removal has happened. * lisp/progmodes/project.el (project-remove-known-project): New command that removes the selected directory from the project-list-file. * lisp/progmodes/project.el (project-current): Add the report message. --- etc/NEWS | 4 ++++ lisp/progmodes/project.el | 18 ++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 49a4bb8106..abe7107f12 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1573,6 +1573,10 @@ project's root directory, respectively. +++ *** New user option 'project-list-file'. +*** New command 'project-remove-known-project'. +This command lets you interactively remove an entry from the list of projects +in 'project-list-file' + ** xref --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index b6a886f731..b3d49c288e 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -201,7 +201,8 @@ of the project instance object." (when maybe-prompt (if pr (project-remember-project pr) - (project--remove-from-project-list directory) + (project--remove-from-project-list + directory "Project `%s' not found; removed from list") (setq pr (cons 'transient directory)))) pr)) @@ -1217,17 +1218,26 @@ Save the result in `project-list-file' if the list of projects has changed." (push (list dir) project--list) (project--write-project-list)))) -(defun project--remove-from-project-list (pr-dir) +(defun project--remove-from-project-list (pr-dir report-message) "Remove directory PR-DIR of a missing project from the project list. If the directory was in the list before the removal, save the result in `project-list-file'. Announce the project's removal -from the list." +from the list using REPORT-MESSAGE." (project--ensure-read-project-list) (when-let ((ent (assoc pr-dir project--list))) (setq project--list (delq ent project--list)) - (message "Project `%s' not found; removed from list" pr-dir) + (message report-message pr-dir) (project--write-project-list))) +;;;###autoload +(defun project-remove-known-project (pr-dir) + "Remove directory PR-DIR from the project-list. +PR-DIR is the root-directory of a known project listed in the +project list." + (interactive (list (project-prompt-project-dir))) + (project--remove-from-project-list + dir "Project `%s' removed from known projects")) + (defun project-prompt-project-dir () "Prompt the user for a directory that is one of the known project roots. The project is chosen among projects known from the project list, -- 2.24.3 (Apple Git-128) --=-=-=-- From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 00:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill , Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161637119022668 (code B ref 47287); Mon, 22 Mar 2021 00:00:02 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 23:59:50 +0000 Received: from localhost ([127.0.0.1]:55703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7z4-0005tY-0G for submit@debbugs.gnu.org; Sun, 21 Mar 2021 19:59:50 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:46804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lO7z1-0005tK-TQ for 47287@debbugs.gnu.org; Sun, 21 Mar 2021 19:59:49 -0400 Received: by mail-wr1-f47.google.com with SMTP id v4so14832968wrp.13 for <47287@debbugs.gnu.org>; Sun, 21 Mar 2021 16:59:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=zdTp+d9MlM/4JccyZj/qdoWQYEZ9gj5FaTOwgqs/cK8=; b=Nm+SI/sWcZHLExp/B88syXxXd/1AvuKcU/65bnKSlQXgwGXdAjIhdpWeeTCp+bIEOe vc1zEryIQRoxsQvOPxYX4KiRipLULvOZ0jzEgiOhgX5+K0JCz/9JrEVJGYLnDr1ZLXzK NGva/ZOnUmWFp4XNWMfb9Z824/hyO/e7KG2pUIF2FG7momrwc+HszoHlkhmh1wExzBCp Yy1ez2WiVl4Q6M7hqp/UMUM78GcPna6TXJ6fWeH6dslI4flck0aUSvBokVK1kLBn0iRb i7O0y0RLoOZF9F/jDVlezlEc/CX5AE//WuA1oljxC62GRCzu9AYw9xh+cMElkEIM8fhs xc+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=zdTp+d9MlM/4JccyZj/qdoWQYEZ9gj5FaTOwgqs/cK8=; b=DIu4S6jzwFBTvdCuM2/A6/I2qD/W3v3vjrLZvx6fO7FAskZ4UtyuukEUO8/O2U7uJk C6TXDGMHA1xRPlC19sml+2ayej7oImD6sx1aK8gD787FjxbF0kK3SaTlfCKVyM2hCxmn KuAIB4ishVbTjLhTPozGCoNjZaCqAFu/3esZMxrLSLIyYVI/x3f7HykofUddLyGrVJcj 7/VLP/sv2IJ99Y5HO6n6Sv7pGk3SJf3ByFXN6j2Z5jhAyblUY6pZisMpsBJ6C6HQGuUe oV1VSvIQdpSd6+oVfv6qE5bKOndfiR1251zqvRkiXXHmF3jFJxx3WpI9jt3emf6Jzkr6 OwsA== X-Gm-Message-State: AOAM531j1I0PHJe7D0s4lolnF2UiOgGt4E7uprX4x9D69bD4w2NXDsXW 0If2FEOXdnCc5D+bC9J5fwUHyberHG4= X-Google-Smtp-Source: ABdhPJxa4RBrJq8KB7BvBbCLC20sRoEovwcI586FwtE/rJ2UfzMU+CIZh5V20TWNJW3gJ/T4J+2/dg== X-Received: by 2002:a5d:404f:: with SMTP id w15mr16122957wrp.106.1616370848089; Sun, 21 Mar 2021 16:54:08 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id o2sm14349995wmc.23.2021.03.21.16.54.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Mar 2021 16:54:07 -0700 (PDT) References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> From: Dmitry Gutov Message-ID: <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> Date: Mon, 22 Mar 2021 01:54:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 22.03.2021 01:21, Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > Does this approach seem reasonable to you? It's fine, but it would be better for both function's argument to follow projectile-add-known-project (meaning, call it 'project-root'). Regarding report-message, I figured it would just be a separate 'message' call in both caller functions. Apparently that might to this message appearing more often (due to the requested project not actually appearing in project--list?), but I wonder if we shouldn't replace that when-let with a presence assertion instead. Anyway, the latter is not a big deal; project--remove-from-project-list can be changed at any time later. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 07:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov , Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161639933610638 (code B ref 47287); Mon, 22 Mar 2021 07:49:01 +0000 Received: (at 47287) by debbugs.gnu.org; 22 Mar 2021 07:48:56 +0000 Received: from localhost ([127.0.0.1]:56066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOFJ1-0002lV-MZ for submit@debbugs.gnu.org; Mon, 22 Mar 2021 03:48:56 -0400 Received: from out0.migadu.com ([94.23.1.103]:25739) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOFIw-0002lJ-Pd for 47287@debbugs.gnu.org; Mon, 22 Mar 2021 03:48:53 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616399328; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ETcGXdrWJU6v9127YR8goGrCi7xhFxnXKfrdu8R5T8A=; b=kwI3UQpAOk2a3COcDiWEANyKYw/GTB7RgsDw4aSPZ2fOWg7ZjvE6FuyThDNUwzRCuzZ81g OJwJl1ZKp8yoJ994t6FUMn9ixlUC9myYkHOE7RXvubuuLK+aCU/sy4fmWqxh+7UaWOWKF8 OlGZMXN6wJDSJiCgSVBv6txp4c9eQ3opxZWiy6su5IaY1SAQSlUKqeExIua6Yh5yRTuLDr QY5JSfDLrVQ9ojTBO2EebPutsGxzAY/HmK30pA5LcBFagvLZC8x2nY3KT8Q7+4kQxCWecX 1Jskgjy4hWFzFoUhp89Nkh6huoxeMKYRXXqWNLkBHY+yleVW8WnjjjgFD3GRBQ== From: Theodor Thornhill In-Reply-To: <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> Date: Mon, 22 Mar 2021 08:48:47 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Hi, > It's fine, but it would be better for both function's argument to follow > projectile-add-known-project (meaning, call it 'project-root'). See attached patch. > > Regarding report-message, I figured it would just be a separate > 'message' call in both caller functions. Apparently that might to this > message appearing more often (due to the requested project not actually > appearing in project--list?), but I wonder if we shouldn't replace that > when-let with a presence assertion instead. Yeah, we could do that. However, the nice thing now is at least that the behavior is bundled together, so we don't need to remember to report. Not sure what is best :) > > Anyway, the latter is not a big deal; project--remove-from-project-list > can be changed at any time later. Sure! Do the manual later, or now? -- Theo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-command-project-remove-known-project.patch >From 78f9aea9d96373721e2590cd79eef360bbc93f0d Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 22 Mar 2021 00:19:23 +0100 Subject: [PATCH] Add command project-remove-known-project * etc/NEWS: Mention the new command. * lisp/progmodes/project.el (project--remove-from-project-list): Add new argument, report-message, used to signal various messages when removal has happened. * lisp/progmodes/project.el (project-remove-known-project): New command that removes the selected directory from the project-list-file. * lisp/progmodes/project.el (project-current): Add the report message. --- etc/NEWS | 4 ++++ lisp/progmodes/project.el | 22 ++++++++++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/etc/NEWS b/etc/NEWS index 49a4bb8106..abe7107f12 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1573,6 +1573,10 @@ project's root directory, respectively. +++ *** New user option 'project-list-file'. +*** New command 'project-remove-known-project'. +This command lets you interactively remove an entry from the list of projects +in 'project-list-file' + ** xref --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index b6a886f731..d76bcbbe96 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -201,7 +201,8 @@ of the project instance object." (when maybe-prompt (if pr (project-remember-project pr) - (project--remove-from-project-list directory) + (project--remove-from-project-list + directory "Project `%s' not found; removed from list") (setq pr (cons 'transient directory)))) pr)) @@ -1217,17 +1218,26 @@ Save the result in `project-list-file' if the list of projects has changed." (push (list dir) project--list) (project--write-project-list)))) -(defun project--remove-from-project-list (pr-dir) - "Remove directory PR-DIR of a missing project from the project list. +(defun project--remove-from-project-list (project-root report-message) + "Remove directory PROJECT-ROOT of a missing project from the project list. If the directory was in the list before the removal, save the result in `project-list-file'. Announce the project's removal -from the list." +from the list using REPORT-MESSAGE." (project--ensure-read-project-list) - (when-let ((ent (assoc pr-dir project--list))) + (when-let ((ent (assoc project-root project--list))) (setq project--list (delq ent project--list)) - (message "Project `%s' not found; removed from list" pr-dir) + (message report-message project-root) (project--write-project-list))) +;;;###autoload +(defun project-remove-known-project (project-root) + "Remove directory PROJECT-ROOT from the project list. +PROJECT-ROOT is the root directory of a known project listed in +the project list." + (interactive (list (project-prompt-project-dir))) + (project--remove-from-project-list + dir "Project `%s' removed from known projects")) + (defun project-prompt-project-dir () "Prompt the user for a directory that is one of the known project roots. The project is chosen among projects known from the project list, -- 2.24.3 (Apple Git-128) --=-=-=-- From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 11:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill , Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161641394513897 (code B ref 47287); Mon, 22 Mar 2021 11:53:02 +0000 Received: (at 47287) by debbugs.gnu.org; 22 Mar 2021 11:52:25 +0000 Received: from localhost ([127.0.0.1]:56343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOJ6f-0003c4-I2 for submit@debbugs.gnu.org; Mon, 22 Mar 2021 07:52:25 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:40856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOJ6d-0003bp-QO for 47287@debbugs.gnu.org; Mon, 22 Mar 2021 07:52:24 -0400 Received: by mail-wr1-f43.google.com with SMTP id v11so16343449wro.7 for <47287@debbugs.gnu.org>; Mon, 22 Mar 2021 04:52:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=WdeLvMq+8pFkVfWQHzHZn6abXoquzXzrnt1CHCO1zXc=; b=kA/lDuBeZPBmLNRDWnspgvN8XrfEjHhrG3DoyW4XYmQm+MfyqYHItQC/mEIJBVYhrT G8dR7G7EeNlAsGKOJOl+XpzE7bSYAxhS1WoSCbxobM5NS8T89fiNcwrJJzEG00Jl21u0 HgYa7reaUPFnLagl24a8O7U/ZUPNK/trphpOgJZ68dTnUAlkTNCmi3/s7kKEemNqKY7u QndQdIEpi7XMBeVDAsxa8bkzfdMo8QqMI9Y8K6hBRghBRLFZq1avh6Ce7NGf311O9RFP RytOYlnWYyth6SpyQaoBJaCJYq91OqjqEJhjSQuzZImhO9y3qgxq6xTtUsAnLn/3QtGo atrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=WdeLvMq+8pFkVfWQHzHZn6abXoquzXzrnt1CHCO1zXc=; b=shEfIMAMevRYyn5Fc1ZZw9mizt43eIExZP3ZJYbXqtH1wSGT2ge/GSbtO/FaPs3Dc8 ptfa2ed42o+iODd+/saKK2mYQiPv1btPLmLvEaBVu004pItihOQlLapJSe2A64nW8tLa h0MZSOxeR3e8DlNguP8NSEM8KL/CE5Q189upeEa3arVqW2dHDe/ft06HRqCGZzuSufht Ij0EMC4k0d97MS90tJ+0J8MXaygjJhN52t0nxDK9LWVbBXcnAPeCdoiwKC0gNRrm4H8q G4noLmQ82adB8ukoFa+TegFZSRkJuDHSC1BVu+JUcgCJx5HygVL6KBR2wDf7f9fdsk7D gNQA== X-Gm-Message-State: AOAM530Bsmf7AE4f2xULcYKo0rMuzSqexN0D7w2bFoFrKj8/nIPC6SwF 4e81m2XPb6rhy3OLfGbwTp8AW1aWzGc= X-Google-Smtp-Source: ABdhPJyHRRmd6l1B8YVWEcn7BhP3R0nGhltumY8bI5U2NbY+ld0deMgvJqc4Xn7bNsTMqmssUNVaVQ== X-Received: by 2002:a5d:5192:: with SMTP id k18mr3373399wrv.153.1616413937878; Mon, 22 Mar 2021 04:52:17 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id w6sm19187445wrl.49.2021.03.22.04.52.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Mar 2021 04:52:17 -0700 (PDT) References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> From: Dmitry Gutov Message-ID: <6f4a0b1d-017d-a22f-3973-e9062c193bc6@yandex.ru> Date: Mon, 22 Mar 2021 13:52:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 22.03.2021 09:48, Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> It's fine, but it would be better for both function's argument to follow >> projectile-add-known-project (meaning, call it 'project-root'). > See attached patch. Thanks, LGTM. >> Regarding report-message, I figured it would just be a separate >> 'message' call in both caller functions. Apparently that might to this >> message appearing more often (due to the requested project not actually >> appearing in project--list?), but I wonder if we shouldn't replace that >> when-let with a presence assertion instead. > Yeah, we could do that. However, the nice thing now is at least that the > behavior is bundled together, so we don't need to remember to > report. Not sure what is best:) Yeah, ok. >> Anyway, the latter is not a big deal; project--remove-from-project-list >> can be changed at any time later. > Sure! Do the manual later, or now? It's the next step, yes. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 Mar 2021 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov , Eli Zaretskii Cc: 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161641617617858 (code B ref 47287); Mon, 22 Mar 2021 12:30:02 +0000 Received: (at 47287) by debbugs.gnu.org; 22 Mar 2021 12:29:36 +0000 Received: from localhost ([127.0.0.1]:56407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOJge-0004dx-4U for submit@debbugs.gnu.org; Mon, 22 Mar 2021 08:29:36 -0400 Received: from out2.migadu.com ([188.165.223.204]:11952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOJga-0004dn-DV for 47287@debbugs.gnu.org; Mon, 22 Mar 2021 08:29:34 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616416170; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+qNdapVxxhOdXbShNf09B2JDUJ+Az3IXwMS5sE7a/Fk=; b=N6l5pB723MmAcnKSm1LiSHRLP4It3Qb5MXgbacXfP1R78zx6SHvILuv9PTf/sjAGN5K85j V8mWswi9MUTt+/pPjvEa/yMzApU9HQqAzd820Oh7Bbv1iO/lxrVeOx1W39a9CfWOFC1bU7 eYVT35ay7BNQGUoVuIZNX6JWLucSCStbEK+mnJZ3f111kZ6uSeEPzvKIVV2wWXBGVO37bK v8WunqhWAu/Jb3fsJyhKM8bx2CxFNLlxoEXKter5jRbdbeKTJMAb/SsHTXuCN72/oYbKLQ NAVUcEcmXIWhMbzyNcdflqmzfy46XjIvwf8InDD5Z757ucWXHpy8rtOmTaTSFg== From: Theodor Thornhill In-Reply-To: <6f4a0b1d-017d-a22f-3973-e9062c193bc6@yandex.ru> References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> <6f4a0b1d-017d-a22f-3973-e9062c193bc6@yandex.ru> Date: Mon, 22 Mar 2021 13:29:29 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain > Thanks, LGTM. > Great! >>> Anyway, the latter is not a big deal; project--remove-from-project-list >>> can be changed at any time later. >> Sure! Do the manual later, or now? > > It's the next step, yes. Something like this? -- Theo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-command-project-remove-known-project.patch >From adf4d92e5cea6183666611757f647c607f633bc0 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 22 Mar 2021 00:19:23 +0100 Subject: [PATCH] Add command project-remove-known-project * etc/NEWS: Mention the new command. * lisp/progmodes/project.el (project--remove-from-project-list): Add new argument, report-message, used to signal various messages when removal has happened. * lisp/progmodes/project.el (project-remove-known-project): New command that removes the selected directory from the project-list-file. * lisp/progmodes/project.el (project-current): Add the report message. * doc/emacs/maintaining.text: Add information about the new command to the manual. --- doc/emacs/maintaining.texi | 16 ++++++++++++++++ etc/NEWS | 4 ++++ lisp/progmodes/project.el | 22 ++++++++++++++++------ 3 files changed, 36 insertions(+), 6 deletions(-) diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 2750418871..7e449a5c25 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -1843,6 +1843,22 @@ in the menu, and which key invokes each command. records the list of known projects. It defaults to the file @file{projects} in @code{user-emacs-directory} (@pxref{Find Init}). +@node Managing project list file +@subsection Managing Projects + +@table @kbd +@item M-x project-remove-known-project +Remove a known project from the (@code{project-list-file}). +@end table + +@findex project-remove-known-project + Normally Emacs handle adding and removing projects to the +(@code{project-list-file}) automatically. Sometimes you still want to +manually edit the available +projects. @kbd{M-x project-remove-known-project} will prompt you for the +available projects, and upon selecting one, it will disappear from the +@code{project-list-file} + @node Change Log @section Change Logs diff --git a/etc/NEWS b/etc/NEWS index 49a4bb8106..abe7107f12 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1573,6 +1573,10 @@ project's root directory, respectively. +++ *** New user option 'project-list-file'. +*** New command 'project-remove-known-project'. +This command lets you interactively remove an entry from the list of projects +in 'project-list-file' + ** xref --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index b6a886f731..d76bcbbe96 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -201,7 +201,8 @@ of the project instance object." (when maybe-prompt (if pr (project-remember-project pr) - (project--remove-from-project-list directory) + (project--remove-from-project-list + directory "Project `%s' not found; removed from list") (setq pr (cons 'transient directory)))) pr)) @@ -1217,17 +1218,26 @@ Save the result in `project-list-file' if the list of projects has changed." (push (list dir) project--list) (project--write-project-list)))) -(defun project--remove-from-project-list (pr-dir) - "Remove directory PR-DIR of a missing project from the project list. +(defun project--remove-from-project-list (project-root report-message) + "Remove directory PROJECT-ROOT of a missing project from the project list. If the directory was in the list before the removal, save the result in `project-list-file'. Announce the project's removal -from the list." +from the list using REPORT-MESSAGE." (project--ensure-read-project-list) - (when-let ((ent (assoc pr-dir project--list))) + (when-let ((ent (assoc project-root project--list))) (setq project--list (delq ent project--list)) - (message "Project `%s' not found; removed from list" pr-dir) + (message report-message project-root) (project--write-project-list))) +;;;###autoload +(defun project-remove-known-project (project-root) + "Remove directory PROJECT-ROOT from the project list. +PROJECT-ROOT is the root directory of a known project listed in +the project list." + (interactive (list (project-prompt-project-dir))) + (project--remove-from-project-list + dir "Project `%s' removed from known projects")) + (defun project-prompt-project-dir () "Prompt the user for a directory that is one of the known project roots. The project is chosen among projects known from the project list, -- 2.24.3 (Apple Git-128) --=-=-=-- From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Mar 2021 11:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill Cc: 47287@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.16164994588025 (code B ref 47287); Tue, 23 Mar 2021 11:38:01 +0000 Received: (at 47287) by debbugs.gnu.org; 23 Mar 2021 11:37:38 +0000 Received: from localhost ([127.0.0.1]:59722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOfLu-00025N-KH for submit@debbugs.gnu.org; Tue, 23 Mar 2021 07:37:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOfLq-000255-4C for 47287@debbugs.gnu.org; Tue, 23 Mar 2021 07:37:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52213) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOfLj-0002d8-SO; Tue, 23 Mar 2021 07:37:27 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2171 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lOfLe-0003WE-A6; Tue, 23 Mar 2021 07:37:26 -0400 Date: Tue, 23 Mar 2021 13:37:27 +0200 Message-Id: <835z1i85jc.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Theodor Thornhill on Mon, 22 Mar 2021 08:48:47 +0100) References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Theodor Thornhill > Cc: 47287@debbugs.gnu.org > Date: Mon, 22 Mar 2021 08:48:47 +0100 > > +(defun project--remove-from-project-list (project-root report-message) > + "Remove directory PROJECT-ROOT of a missing project from the project list. > If the directory was in the list before the removal, save the > result in `project-list-file'. Announce the project's removal > -from the list." > +from the list using REPORT-MESSAGE." Please be sure to say here that REPORT-MESSAGE is a format string passed to 'message' as its first arg. Thanks. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Mar 2021 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 47287@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161650264413358 (code B ref 47287); Tue, 23 Mar 2021 12:31:02 +0000 Received: (at 47287) by debbugs.gnu.org; 23 Mar 2021 12:30:44 +0000 Received: from localhost ([127.0.0.1]:59772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOgBH-0003TN-JQ for submit@debbugs.gnu.org; Tue, 23 Mar 2021 08:30:43 -0400 Received: from out0.migadu.com ([94.23.1.103]:50243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOgBE-0003TE-Vq for 47287@debbugs.gnu.org; Tue, 23 Mar 2021 08:30:42 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616502639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6iETStWkZ+3+QuG//0rrB6tNNGVielIEJ3ciuwj98vs=; b=RZGmFHPtQLJsrsUApfpp8awIICEnBtzzFpdzmwiDs8ETKXBZ0B7DnZv6CDrO1bbs4RK4hE MIoOMAwUwA0F0oQXILa9XgXi9qccvGLC7KeoA+D3wKhIWfha31pDyjaG3GDFoltSGqaAJn AHrpgii2pqhMrymZRPfX2uQ8eUU3gH/ZDqp7cCOK8+vwj47D1Y3FxjiDGq5Mmb4DRJZP6B 9/bh3UfV/gJ2Q0gqb2n4iNQwh4ydwDKBHWDDYEcjuPh/UEFZ5GHchvZDs+eak0ZaKx+LOm mx9HVy/jBPNYtIKTrd4lDt1d1wTLy2P8h/qKnVTfLVBJzReCYld7zaMa2S2aWA== From: Theodor Thornhill In-Reply-To: <835z1i85jc.fsf@gnu.org> References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> <835z1i85jc.fsf@gnu.org> Date: Tue, 23 Mar 2021 13:30:37 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Eli Zaretskii writes: > Please be sure to say here that REPORT-MESSAGE is a format string > passed to 'message' as its first arg. > Done. Fixed in attached patch Thanks. -- Theo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-command-project-remove-known-project.patch >From fdcf9ff14bf6d60c9898d558d6409f1ca8a288c2 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 22 Mar 2021 00:19:23 +0100 Subject: [PATCH] Add command project-remove-known-project * etc/NEWS: Mention the new command. * lisp/progmodes/project.el (project--remove-from-project-list): Add new argument, report-message, used to signal various messages when removal has happened. * lisp/progmodes/project.el (project-remove-known-project): New command that removes the selected directory from the project-list-file. * lisp/progmodes/project.el (project-current): Add the report message. * doc/emacs/maintaining.text: Add information about the new command to the manual. --- doc/emacs/maintaining.texi | 16 ++++++++++++++++ etc/NEWS | 4 ++++ lisp/progmodes/project.el | 23 +++++++++++++++++------ 3 files changed, 37 insertions(+), 6 deletions(-) diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 2750418871..7e449a5c25 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -1843,6 +1843,22 @@ in the menu, and which key invokes each command. records the list of known projects. It defaults to the file @file{projects} in @code{user-emacs-directory} (@pxref{Find Init}). +@node Managing project list file +@subsection Managing Projects + +@table @kbd +@item M-x project-remove-known-project +Remove a known project from the (@code{project-list-file}). +@end table + +@findex project-remove-known-project + Normally Emacs handle adding and removing projects to the +(@code{project-list-file}) automatically. Sometimes you still want to +manually edit the available +projects. @kbd{M-x project-remove-known-project} will prompt you for the +available projects, and upon selecting one, it will disappear from the +@code{project-list-file} + @node Change Log @section Change Logs diff --git a/etc/NEWS b/etc/NEWS index 49a4bb8106..abe7107f12 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1573,6 +1573,10 @@ project's root directory, respectively. +++ *** New user option 'project-list-file'. +*** New command 'project-remove-known-project'. +This command lets you interactively remove an entry from the list of projects +in 'project-list-file' + ** xref --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index b6a886f731..07842977ef 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -201,7 +201,8 @@ of the project instance object." (when maybe-prompt (if pr (project-remember-project pr) - (project--remove-from-project-list directory) + (project--remove-from-project-list + directory "Project `%s' not found; removed from list") (setq pr (cons 'transient directory)))) pr)) @@ -1217,17 +1218,27 @@ Save the result in `project-list-file' if the list of projects has changed." (push (list dir) project--list) (project--write-project-list)))) -(defun project--remove-from-project-list (pr-dir) - "Remove directory PR-DIR of a missing project from the project list. +(defun project--remove-from-project-list (project-root report-message) + "Remove directory PROJECT-ROOT of a missing project from the project list. If the directory was in the list before the removal, save the result in `project-list-file'. Announce the project's removal -from the list." +from the list using REPORT-MESSAGE, which is a format string +passed to `message' as its first argument." (project--ensure-read-project-list) - (when-let ((ent (assoc pr-dir project--list))) + (when-let ((ent (assoc project-root project--list))) (setq project--list (delq ent project--list)) - (message "Project `%s' not found; removed from list" pr-dir) + (message report-message project-root) (project--write-project-list))) +;;;###autoload +(defun project-remove-known-project (project-root) + "Remove directory PROJECT-ROOT from the project list. +PROJECT-ROOT is the root directory of a known project listed in +the project list." + (interactive (list (project-prompt-project-dir))) + (project--remove-from-project-list + dir "Project `%s' removed from known projects")) + (defun project-prompt-project-dir () "Prompt the user for a directory that is one of the known project roots. The project is chosen among projects known from the project list, -- 2.24.3 (Apple Git-128) --=-=-=-- From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Mar 2021 12:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill Cc: 47287@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161650342114483 (code B ref 47287); Tue, 23 Mar 2021 12:44:01 +0000 Received: (at 47287) by debbugs.gnu.org; 23 Mar 2021 12:43:41 +0000 Received: from localhost ([127.0.0.1]:59792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOgNp-0003lV-8u for submit@debbugs.gnu.org; Tue, 23 Mar 2021 08:43:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOgNn-0003lI-4H for 47287@debbugs.gnu.org; Tue, 23 Mar 2021 08:43:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53984) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOgNh-0006Tp-Ie; Tue, 23 Mar 2021 08:43:33 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2261 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lOgNg-00071D-Mg; Tue, 23 Mar 2021 08:43:33 -0400 Date: Tue, 23 Mar 2021 14:43:40 +0200 Message-Id: <83zgyu6nwj.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Theodor Thornhill on Tue, 23 Mar 2021 13:30:37 +0100) References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> <835z1i85jc.fsf@gnu.org> X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > From: Theodor Thornhill > Cc: dgutov@yandex.ru, 47287@debbugs.gnu.org > Date: Tue, 23 Mar 2021 13:30:37 +0100 > > > Please be sure to say here that REPORT-MESSAGE is a format string > > passed to 'message' as its first arg. > > > > Done. Fixed in attached patch Thanks. > +*** New command 'project-remove-known-project'. > +This command lets you interactively remove an entry from the list of projects > +in 'project-list-file' > + One last nit from me: since you now include the changes to the manual, this NEWS entry should be marked by "+++" before it, per the note at the beginning of NEWS. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Mar 2021 12:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Eli Zaretskii Cc: 47287@debbugs.gnu.org, dgutov@yandex.ru Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161650385115125 (code B ref 47287); Tue, 23 Mar 2021 12:51:01 +0000 Received: (at 47287) by debbugs.gnu.org; 23 Mar 2021 12:50:51 +0000 Received: from localhost ([127.0.0.1]:59797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOgUl-0003vt-16 for submit@debbugs.gnu.org; Tue, 23 Mar 2021 08:50:51 -0400 Received: from out2.migadu.com ([188.165.223.204]:50202) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lOgUi-0003vj-FK for 47287@debbugs.gnu.org; Tue, 23 Mar 2021 08:50:50 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616503846; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/C17YbBXa4oeEiWBMmvVG/a39CBhN5PuBA/OB+tdoXU=; b=ceSvZDXguvnR04J698496HkPoswkUOY1tbqTzP57o6QfmZ+RSkJThOo6HzsNgIsl2Vt0E0 KGj2zKlI/rO/3jYupxJyejawVSKqS3UKGlC4PAhlrFiZyV0r5gcNjUhlSKL3fKlPNH7RU9 0YwN92ralCiR0+PNrbNlYd3A6gjMAicsyb1emhv/LynUxBK8grit/vQ4g0sUS3doavvqy5 HfUwzOqFuzeqyx8B6NxlkKlqxouqAnC66+9pmg2iW5Ypefodxfkx/2XFWFLJB7zQ1tCbmw 0SCYkx1Yw5piwf455oX+m0YIAkk1+s8W6pb2lrHRnqPzQfcUs/kK8puze7Wpig== From: Theodor Thornhill In-Reply-To: <83zgyu6nwj.fsf@gnu.org> References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> <835z1i85jc.fsf@gnu.org> <83zgyu6nwj.fsf@gnu.org> Date: Tue, 23 Mar 2021 13:50:45 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain > > One last nit from me: since you now include the changes to the manual, > this NEWS entry should be marked by "+++" before it, per the note at > the beginning of NEWS. Of course - added. Thanks for patience :) -- Theo --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-command-project-remove-known-project.patch >From aca3a486b391f92b04ef2c9a16d5d5760062ec4b Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 22 Mar 2021 00:19:23 +0100 Subject: [PATCH] Add command project-remove-known-project * etc/NEWS: Mention the new command. * lisp/progmodes/project.el (project--remove-from-project-list): Add new argument, report-message, used to signal various messages when removal has happened. * lisp/progmodes/project.el (project-remove-known-project): New command that removes the selected directory from the project-list-file. * lisp/progmodes/project.el (project-current): Add the report message. * doc/emacs/maintaining.text: Add information about the new command to the manual. --- doc/emacs/maintaining.texi | 16 ++++++++++++++++ etc/NEWS | 5 +++++ lisp/progmodes/project.el | 23 +++++++++++++++++------ 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi index 2750418871..7e449a5c25 100644 --- a/doc/emacs/maintaining.texi +++ b/doc/emacs/maintaining.texi @@ -1843,6 +1843,22 @@ in the menu, and which key invokes each command. records the list of known projects. It defaults to the file @file{projects} in @code{user-emacs-directory} (@pxref{Find Init}). +@node Managing project list file +@subsection Managing Projects + +@table @kbd +@item M-x project-remove-known-project +Remove a known project from the (@code{project-list-file}). +@end table + +@findex project-remove-known-project + Normally Emacs handle adding and removing projects to the +(@code{project-list-file}) automatically. Sometimes you still want to +manually edit the available +projects. @kbd{M-x project-remove-known-project} will prompt you for the +available projects, and upon selecting one, it will disappear from the +@code{project-list-file} + @node Change Log @section Change Logs diff --git a/etc/NEWS b/etc/NEWS index 49a4bb8106..638e457972 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1573,6 +1573,11 @@ project's root directory, respectively. +++ *** New user option 'project-list-file'. ++++ +*** New command 'project-remove-known-project'. +This command lets you interactively remove an entry from the list of projects +in 'project-list-file' + ** xref --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index b6a886f731..07842977ef 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -201,7 +201,8 @@ of the project instance object." (when maybe-prompt (if pr (project-remember-project pr) - (project--remove-from-project-list directory) + (project--remove-from-project-list + directory "Project `%s' not found; removed from list") (setq pr (cons 'transient directory)))) pr)) @@ -1217,17 +1218,27 @@ Save the result in `project-list-file' if the list of projects has changed." (push (list dir) project--list) (project--write-project-list)))) -(defun project--remove-from-project-list (pr-dir) - "Remove directory PR-DIR of a missing project from the project list. +(defun project--remove-from-project-list (project-root report-message) + "Remove directory PROJECT-ROOT of a missing project from the project list. If the directory was in the list before the removal, save the result in `project-list-file'. Announce the project's removal -from the list." +from the list using REPORT-MESSAGE, which is a format string +passed to `message' as its first argument." (project--ensure-read-project-list) - (when-let ((ent (assoc pr-dir project--list))) + (when-let ((ent (assoc project-root project--list))) (setq project--list (delq ent project--list)) - (message "Project `%s' not found; removed from list" pr-dir) + (message report-message project-root) (project--write-project-list))) +;;;###autoload +(defun project-remove-known-project (project-root) + "Remove directory PROJECT-ROOT from the project list. +PROJECT-ROOT is the root directory of a known project listed in +the project list." + (interactive (list (project-prompt-project-dir))) + (project--remove-from-project-list + dir "Project `%s' removed from known projects")) + (defun project-prompt-project-dir () "Prompt the user for a directory that is one of the known project roots. The project is chosen among projects known from the project list, -- 2.24.3 (Apple Git-128) --=-=-=-- From unknown Sun Jun 22 22:45:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Theodor Thornhill Subject: bug#47287: closed (Re: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project) Message-ID: References: <61faf9a5-266e-2077-71bd-d64564914671@yandex.ru> X-Gnu-PR-Message: they-closed 47287 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 47287@debbugs.gnu.org Date: Wed, 24 Mar 2021 23:18:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1616627882-7832-1" This is a multi-part message in MIME format... ------------=_1616627882-7832-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #47287: 28.0.50; [PATCH] Add command project-remove-known-project which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 47287@debbugs.gnu.org. --=20 47287: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D47287 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1616627882-7832-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 47287-done) by debbugs.gnu.org; 24 Mar 2021 23:17:50 +0000 Received: from localhost ([127.0.0.1]:36400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPCl3-00021g-LA for submit@debbugs.gnu.org; Wed, 24 Mar 2021 19:17:49 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:42930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPCl1-00021T-PS for 47287-done@debbugs.gnu.org; Wed, 24 Mar 2021 19:17:48 -0400 Received: by mail-wr1-f41.google.com with SMTP id x13so426914wrs.9 for <47287-done@debbugs.gnu.org>; Wed, 24 Mar 2021 16:17:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jE41D2KfW4EIEQqR+cT7F/exRvywngpyFqo35Ixjugg=; b=HGn4izf430SmImGpJHV7vN/g405BBnZNjl549rmn9pNhjTmcyBptCzt0G6tudgQilC SKlgOGBpC84mu5QA0kS7+eLlYlh7Ed5WStgeSACXxLLyW6ntSFKYU4ULi6ki6vFzmm64 GWUkGIN3Bl/2NJYNyl+zYUsmIy8UnxlYC6X3iadlJ/5D4NWYrkKP9ORmtSDN74jkmEXy XDD7PLEzrsH5qsc+2dQZV/zzh2Ym8wz55rZjT0CE0XM/l9kJ7J9je4MGnSZ4A6lIJCt/ AiwbYQH0R696EgRGpKoEQAlQ6bKT9dx0mzTcQIArxAWvSHo0yqNsM0YYB2s6FpIFADX0 2riQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jE41D2KfW4EIEQqR+cT7F/exRvywngpyFqo35Ixjugg=; b=JSU7/KXT6UtMW5kouy3f2pedGCB0G4wAFyJEDwc2pMlUfwXX6Fm3Nv67Qjb5FHsJ6P 8kDizgjm8+qN8+Kn/n2ZnGvd/QKNbj8iCWTGvb1imjEg/z72LZpb63QHBtiS1MBQKR/B yUTfqNr+7ziwIoB0H70vVL4m7JaF0o+7Kht2KcVJxZiv2jg8yuIPSvCNMxvuilEcRntc xY3pidtyty6ECbBdOiBI8nNW+StA11At9bYlhjbq4g+U1WJR4z2OJIJ3EyeXEHd1XEvG 1iaes14a9lBp5qT9BS5H8mTvoG5ePGjYiwb7Q9+P/+4Uw4teP+w1U7FvEsBYmoo0DgI4 GfJA== X-Gm-Message-State: AOAM530T8lkaJJfrPA20oOVE/OzbOf+9owi+Ih9DFb3Rz1C7ZKPdJAPx HGDe5TwcyxrEW6cLFXCuP5aYTcztADM= X-Google-Smtp-Source: ABdhPJyLn7tsI04uLV85wsFWrIqBX6huHpuQPxERFsPVVr/TtvTaE9C1Sj+Vvx5J/SsXiaKxuxAI9A== X-Received: by 2002:a5d:4521:: with SMTP id j1mr5782218wra.354.1616627861905; Wed, 24 Mar 2021 16:17:41 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id u17sm3959647wmq.3.2021.03.24.16.17.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Mar 2021 16:17:41 -0700 (PDT) Subject: Re: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project To: Theodor Thornhill , Eli Zaretskii References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> <835z1i85jc.fsf@gnu.org> <83zgyu6nwj.fsf@gnu.org> From: Dmitry Gutov Message-ID: <61faf9a5-266e-2077-71bd-d64564914671@yandex.ru> Date: Thu, 25 Mar 2021 01:17:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 47287-done Cc: 47287-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 23.03.2021 14:50, Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > >> >> One last nit from me: since you now include the changes to the manual, >> this NEWS entry should be marked by "+++" before it, per the note at >> the beginning of NEWS. > > Of course - added. Thanks for patience :) Thank you for following up. Installed and closing. ------------=_1616627882-7832-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Mar 2021 23:28:41 +0000 Received: from localhost ([127.0.0.1]:53318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNl1N-0007ky-EN for submit@debbugs.gnu.org; Sat, 20 Mar 2021 19:28:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:38676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNl1H-0007kj-TU for submit@debbugs.gnu.org; Sat, 20 Mar 2021 19:28:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNl1H-0005cL-HF for bug-gnu-emacs@gnu.org; Sat, 20 Mar 2021 19:28:35 -0400 Received: from out2.migadu.com ([188.165.223.204]:44658) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNl1C-0004eY-GC for bug-gnu-emacs@gnu.org; Sat, 20 Mar 2021 19:28:35 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616282906; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=aC2YULsA2mZZ2rPJgR+eJFMTy+E1tzxp4MkZBgEq+g8=; b=ADrBrgj9aNIctnEGSsylXiCgcRCFcRRxaWcD0CVRpktGOEIxxZGOwmJkecZ/kwpkHczgwn Df4RYMSxejCwjrP2+mEDCexi7+IMkilQUS+gfpTxc+DwI9F7RIhY8w5wFXxzkryozW7FR6 /rY/Hn4Ny7TuQCHtfh2kypwdaV+76K7+fj2Mzcbkj6Luoy5QQE9BoGPxkjrEheSCIUi91B ajgB/s1apUNEW2SjyRgaTBUsTtL5wu6nGVuVuR2PTrigONKiWkvxmzRMKAi5laZ3nWKa31 nGImoagkeAZaLT5LvpR/SBFhOOaYSZn1psQiqbCk18QScAJKG729BIi/vb/DFw== From: Theodor Thornhill To: bug-gnu-emacs@gnu.org Subject: 28.0.50; [PATCH] Add command project-remove-known-project Date: Sun, 21 Mar 2021 00:28:24 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no Received-SPF: pass client-ip=188.165.223.204; envelope-from=theo@thornhill.no; helo=out2.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Hello! This patch adds an interactive command 'project-remove-known-project', that lets the user interactively remove a project from the project list. My usecase is that sometimes when a directory is moved, the project isn't deleted from the list. This command is modelled after the already present 'project--remove-from-project-list', but that function isn't interactive, and also has a specific purpose. I did not add a binding, nor add it to the project-switch-commands. Unsure if deserves a spot there :). -- Theodor Thornhill --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-command-project-remove-known-project.patch >From 60992f4f6c4a7e9bc876f5546e7316f3fea0bf59 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Sun, 21 Mar 2021 00:23:28 +0100 Subject: [PATCH] Add command project-remove-known-project * etc/NEWS: Add information about new command. * lisp/progmodes/project.el (project-remove-known-project): New command that allows deleting of known projects from the project list. --- etc/NEWS | 5 +++++ lisp/progmodes/project.el | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index c602166397..20017ea30b 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1573,6 +1573,11 @@ project's root directory, respectively. +++ *** New user option 'project-list-file'. ++++ +*** New command 'project-remove-known-project'. +This command lets you interactively remove an entry from the list of projects +in 'project-list-file' + ** xref --- diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index bd552c917a..a9db511b46 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -1228,6 +1228,17 @@ from the list." (message "Project `%s' not found; removed from list" pr-dir) (project--write-project-list))) +;;;###autoload +(defun project-remove-known-project (dir) + "Remove directory DIR, a known project from the project list. +Announce the projects removal from the `project-list-file'." + (interactive (list (project-prompt-project-dir))) + (project--ensure-read-project-list) + (when-let ((ent (assoc dir project--list))) + (setq project--list (delq ent project--list)) + (message "Project `%s' removed from known projects" dir) + (project--write-project-list))) + (defun project-prompt-project-dir () "Prompt the user for a directory that is one of the known project roots. The project is chosen among projects known from the project list, -- 2.24.3 (Apple Git-128) --=-=-=-- ------------=_1616627882-7832-1-- From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Mar 2021 00:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 47287@debbugs.gnu.org Cc: theo@thornhill.no, dgutov@yandex.ru Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161663060512518 (code B ref 47287); Thu, 25 Mar 2021 00:04:01 +0000 Received: (at 47287) by debbugs.gnu.org; 25 Mar 2021 00:03:25 +0000 Received: from localhost ([127.0.0.1]:36498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPDTB-0003Fq-0F for submit@debbugs.gnu.org; Wed, 24 Mar 2021 20:03:25 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:38781) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPDT8-0003Fd-LN for 47287@debbugs.gnu.org; Wed, 24 Mar 2021 20:03:23 -0400 Received: by mail-wm1-f54.google.com with SMTP id m20-20020a7bcb940000b029010cab7e5a9fso2136836wmi.3 for <47287@debbugs.gnu.org>; Wed, 24 Mar 2021 17:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1SCThH5ETuQ0pMP14sLMOEQCXs4h1ZT1hM8+Uk9k84g=; b=ZzaHT4wWsDm06cVm9ZRrpCZtc8BMCT9GyF4cf0iYAO8MuMtHfuSTHCF8IOOZgcW9jc lMDaR/fP4w0usPjYJ3MwIljig8ePy8/xH3vbnhd5nXGKLQPn8e+DJrUtav4+9oaGd5Sp aqxCf+sC0f5Hb1PHvxkd4c1vKMstNQJFByfFUf3k4p6pPwVLbgFGiK6vY6mkeRnGjUw5 GDZWrfdI34Ye+sKTJHiA+yJerwLktb7i4DGYTgE0lEBwCMAUuFeqTcXVvaYitYUJ9HMH OtyDxaxNpWnYiwoZYJPb7zrzcv03UNND8xzYdmlw2OZbkyjsPQcf38TdEvD8ZbK0hR/L QXpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1SCThH5ETuQ0pMP14sLMOEQCXs4h1ZT1hM8+Uk9k84g=; b=kwASqJEtyHDeGb9Bu/dcvnzQCmJ1I4ox5nRHUacJ8iG8TNxJdXYSJnyjqUr8X3I0N0 nqz3RCj4/ZwnZu9m/QZCuoGtOV8v+PCBTfVckxulz4B+bsE54rBreT4VUaqdJ49cLQoa SnWA274fhGrCEPF1Rbpk7YK0haBYxZ48vGR2w9yBxbrslvAEeFvLrFoK7WrGDBCKrTex wRl6CtA6pvB+/+kU+NnKlXjAnEu2K+f8tbx2XESg/As+uEFxVbfl8dTPWcBLsB/rxAGW VXq4hFt3I6Mr4LZ3/iGrDz2W329yfiGwpp33Z9d2rO1UxBq2/t9fao2hIfpvsIf/hCTL cyvw== X-Gm-Message-State: AOAM530Bm2ZvxAN3bmL8ox+vQhB1aCLWn7JPe0jMI0A7vyuTj09MlPpd 7LStdVBzdpKz0JeK56wugKoDB0nEKETQjEet X-Google-Smtp-Source: ABdhPJxaPpknj8YFE9N82nL96TEDBlbKUFHdHo2jz00pIDsPNLnHoOJO/gBd4B6qg9HEu+gweo2+UA== X-Received: by 2002:a1c:1dd4:: with SMTP id d203mr5148875wmd.83.1616630596458; Wed, 24 Mar 2021 17:03:16 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id h25sm4449911wml.32.2021.03.24.17.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Mar 2021 17:03:15 -0700 (PDT) From: "Basil L. Contovounesios" References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> <835z1i85jc.fsf@gnu.org> <83zgyu6nwj.fsf@gnu.org> <61faf9a5-266e-2077-71bd-d64564914671@yandex.ru> Date: Thu, 25 Mar 2021 00:03:13 +0000 In-Reply-To: <61faf9a5-266e-2077-71bd-d64564914671@yandex.ru> (Dmitry Gutov's message of "Thu, 25 Mar 2021 01:17:39 +0200") Message-ID: <87lfacxfpa.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > On 23.03.2021 14:50, Theodor Thornhill via Bug reports for GNU Emacs, the Swiss > army knife of text editors wrote: >> >>> One last nit from me: since you now include the changes to the manual, >>> this NEWS entry should be marked by "+++" before it, per the note at >>> the beginning of NEWS. >> Of course - added. Thanks for patience :) > > Thank you for following up. > > Installed and closing. Thanks, this is a useful function I wished for recently. But Texinfo still had some comments on the patch ;). ./maintaining.texi:1821: warning: node `Managing project list file' is next for `Switching Projects' in sectioning but not in menu ./maintaining.texi:1846: warning: node `Switching Projects' is prev for `Managing project list file' in sectioning but not in menu ./maintaining.texi:1846: warning: node `Projects' is up for `Managing project list file' in sectioning but not in menu ./maintaining.texi:1641: node `Projects' lacks menu item for `Managing project list file' despite being its Up target Could you please add a menu entry for the new node? (There also seem to be some extraneous parentheses around @code{project-list-file}, a missing space after full stop, and a missing full stop in the new text.) Thanks, -- Basil From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Mar 2021 01:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: "Basil L. Contovounesios" , 47287@debbugs.gnu.org Cc: theo@thornhill.no Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.16166342722140 (code B ref 47287); Thu, 25 Mar 2021 01:05:02 +0000 Received: (at 47287) by debbugs.gnu.org; 25 Mar 2021 01:04:32 +0000 Received: from localhost ([127.0.0.1]:36567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPEQK-0000YR-9h for submit@debbugs.gnu.org; Wed, 24 Mar 2021 21:04:32 -0400 Received: from mail-wr1-f44.google.com ([209.85.221.44]:35566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPEQI-0000YE-Nc for 47287@debbugs.gnu.org; Wed, 24 Mar 2021 21:04:31 -0400 Received: by mail-wr1-f44.google.com with SMTP id j18so626050wra.2 for <47287@debbugs.gnu.org>; Wed, 24 Mar 2021 18:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=3AP/YKeJttsuRF0UPhnPhSL/CAOveLZLq/4v4pVP7q8=; b=YsvfFDemy0qva5TtfEXC9fsGMlPycBpvADF1Tx0oo/bVzW1Ma2Nouw8zs3vwjzzc4q YDSWt9ZmgMVpVMPAUNqtxSSHzixlvbNwMA9f6v+qHjTYqrSnvoHCdVGRJw6a5+95UasM RJjeV5TMly1BL3IG85q+4sITeumyL2FiQYkgYBGZOXWPtnubwJZ1++1xCgoP7Q5N+qa0 Xaa8JekFyTdjel6SYJY0SXQtKDEyID8WaPiJjGE50rzTfJr6KNY3LPogoL1C5QWnwaLy cfUcuuCFYQ8iWdasdnaPZwUn4wYSkfx6G64DRa82j6tnDxudlTNbQwW0UPYcshcPkeiD qygQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=3AP/YKeJttsuRF0UPhnPhSL/CAOveLZLq/4v4pVP7q8=; b=SfANWCYhlyZXKPFErC4JknwMmWhSJC6DUZL1gJzFVZudMMFgtiCbGdjAfLpkn4IKnr 3+G8Z+KExvnOoYoELYvGttmqpF73MzJmj/h6lo4DYzWqLEaqKK8oGl94TNFTkYG29iCW tNdGZKs9UoPIp9/xFIlZnpg2YnrUrDg2vDqmYHm17ycJ90PnK8w/NhmTqhdj7MF/p8IN 6vWDc/6M65HFj8OTCw14krSj693V8Jadv5/3P/nk2+tAwcz1bYYr6fsk8nuGOcCObhKg djypG7ZDLmDDGXGY6LrLdGX7Y3oyffhIUUIZs0TcWRCr50TsCe9uWiZ5RsI2Ti1Km+De KavA== X-Gm-Message-State: AOAM532Vs7X5aUwXAws3EHltlBC8OxJ0F/1lSIxZbIB9TxLjGLilpYA1 vvcs7NVWXiL3Hvdlq5Qm1v8= X-Google-Smtp-Source: ABdhPJz+EpUlmx8qmEr+65ZGQcq8FYJ1xXGMCgY5RTOGV1QxrePkORMVwuYLGooYN9spOu35/X7few== X-Received: by 2002:a5d:5487:: with SMTP id h7mr6172949wrv.348.1616634264768; Wed, 24 Mar 2021 18:04:24 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id i16sm6451272wmq.3.2021.03.24.18.04.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Mar 2021 18:04:24 -0700 (PDT) References: <83v99lav45.fsf@gnu.org> <95323A8F-5875-413E-952D-383163B0D1A8@thornhill.no> <4f5e3918-e133-88e4-b5c9-90a81e348497@yandex.ru> <835z1i85jc.fsf@gnu.org> <83zgyu6nwj.fsf@gnu.org> <61faf9a5-266e-2077-71bd-d64564914671@yandex.ru> <87lfacxfpa.fsf@tcd.ie> From: Dmitry Gutov Message-ID: Date: Thu, 25 Mar 2021 03:04:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <87lfacxfpa.fsf@tcd.ie> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Hi Basil, On 25.03.2021 02:03, Basil L. Contovounesios wrote: > But Texinfo still had some comments on the patch;). > > ./maintaining.texi:1821: warning: node `Managing project list file' is > next for `Switching Projects' in sectioning but not in menu > ./maintaining.texi:1846: warning: node `Switching Projects' is prev > for `Managing project list file' in sectioning but not in menu > ./maintaining.texi:1846: warning: node `Projects' is up for `Managing > project list file' in sectioning but not in menu > ./maintaining.texi:1641: node `Projects' lacks menu item for `Managing > project list file' despite being its Up target > > Could you please add a menu entry for the new node? If you know how to fix any of that, help welcome. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Mar 2021 06:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: "Basil L. Contovounesios" , 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.1616652930380 (code B ref 47287); Thu, 25 Mar 2021 06:16:02 +0000 Received: (at 47287) by debbugs.gnu.org; 25 Mar 2021 06:15:30 +0000 Received: from localhost ([127.0.0.1]:36943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPJHG-000064-GZ for submit@debbugs.gnu.org; Thu, 25 Mar 2021 02:15:30 -0400 Received: from out2.migadu.com ([188.165.223.204]:53024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPJHC-00005q-VB for 47287@debbugs.gnu.org; Thu, 25 Mar 2021 02:15:29 -0400 Content-Type: text/plain; charset=utf-8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616652925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fz28Uv5I2IP58ecR6qoJc+A9yjrDE6+UvQy1cSdvfsM=; b=MREhll6RpEvzXiGzlNNLWI63IOtboltOjzvhaKpo90RrCi6opNTNyqAvdP7WN+rN6+YKuf GxLWkd8aT8O4Xo62gaJ77v3XAM6RtJJ1VEf10aL/77igmysntyvqkbQ8bELgFxFFpQEtWb szMZOIgqfVA7ISMtlSG0mJzUATDPAk9sdfyuopRqJZk6+fGOdq14Lsx88+Vw3dGZEAqrUU W9pXW95jLzGqAkznRBaIlDQIoaZJpH6mfDeDvpJLX83+oBbua4X/dce5b1O2ciUd8Cn41W ORFAp06uLCRbr0qzpJmscEhmDn31FuUNoIt+xdDxcTHzYOGsT7dxQF9pI6WQOg== Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Theodor Thornhill MIME-Version: 1.0 Date: Thu, 25 Mar 2021 07:15:22 +0100 Message-Id: References: In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I think i see whats missing - adding followup later today :) =E2=80=94 Theodor > 25. mar. 2021 kl. 02:04 skrev Dmitry Gutov : >=20 > =EF=BB=BFHi Basil, >=20 >> On 25.03.2021 02:03, Basil L. Contovounesios wrote: >> But Texinfo still had some comments on the patch;). >> ./maintaining.texi:1821: warning: node `Managing project list file' is >> next for `Switching Projects' in sectioning but not in menu >> ./maintaining.texi:1846: warning: node `Switching Projects' is prev >> for `Managing project list file' in sectioning but not in menu >> ./maintaining.texi:1846: warning: node `Projects' is up for `Managing >> project list file' in sectioning but not in menu >> ./maintaining.texi:1641: node `Projects' lacks menu item for `Managing >> project list file' despite being its Up target >> Could you please add a menu entry for the new node? >=20 > If you know how to fix any of that, help welcome. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Mar 2021 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: "Basil L. Contovounesios" , 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.16166573507943 (code B ref 47287); Thu, 25 Mar 2021 07:30:02 +0000 Received: (at 47287) by debbugs.gnu.org; 25 Mar 2021 07:29:10 +0000 Received: from localhost ([127.0.0.1]:37020 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPKQY-000243-2F for submit@debbugs.gnu.org; Thu, 25 Mar 2021 03:29:10 -0400 Received: from out1.migadu.com ([91.121.223.63]:62048) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPKQW-00023s-39 for 47287@debbugs.gnu.org; Thu, 25 Mar 2021 03:29:09 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1616657346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=fwt9diXJlofQDMCB5nInYCX5muaOrJmmVSVEFqb4vQo=; b=wlccGgJ7AO9B/I69yFsikC/wV9V/DP0BGmRaFPmjpCs4ugG/W1acTOC5JanZZkDDrfVh8P S0xSpBsD5Xqfa0zuCTop7xQeL22Jg9HizBkcfX4hW7IOC41lM27z27Y+JoelrLG6ihqNFa h4rGOalMmssDvbXV2M36Bwqtgig8YR8Ss2hmcsxX1L3RxqiK2Nw077Q/3u+8d3hvfiB8fQ yhdyJSqZo8c5WEwb0kD6ZnZJlSLzWE9kwFDuJq8HDXX9bQzwwNVRuiZ2at53esUbAnA7Pp NC1hnQS4IXCOtHnlTBmVzUEJwJQrBJR1vlJcO7kmsF7NMK98l0SmCFP8OuykGA== From: Theodor Thornhill In-Reply-To: References: Date: Thu, 25 Mar 2021 08:29:04 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Theodor Thornhill writes: >> If you know how to fix any of that, help welcome. Looks like it was fixed for me - thanks, Dmitry and Glenn Morris :-) -- Theo From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 21 09:23:54 2021 Received: (at control) by debbugs.gnu.org; 21 Sep 2021 13:23:54 +0000 Received: from localhost ([127.0.0.1]:45382 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSfkY-0003Dt-7z for submit@debbugs.gnu.org; Tue, 21 Sep 2021 09:23:54 -0400 Received: from mail-wr1-f42.google.com ([209.85.221.42]:37606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSfkW-0003De-6I for control@debbugs.gnu.org; Tue, 21 Sep 2021 09:23:53 -0400 Received: by mail-wr1-f42.google.com with SMTP id t8so39156271wrq.4 for ; Tue, 21 Sep 2021 06:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=KQB+t4JEuanyux4++9PXPnDGwe8ws4SvjuQra07eC24=; b=iBLjnmVzlIWgOgJTNIcQp7dzcGBwqrIS9ysAlfS1zvkWAYP5H/Olq46IQNGR7KhAX6 I+X/dVm2D3jjphwmrP6421UMSXZE8CkRkJZ2BD2A7TzYjpEhtTStkhr26Y3XH3lEEK5W Y5IfVgX4XnF+WBIQ8U6YgV55Ez5sAQBrICnonnbe8UjT4xYJOH2cRRTH7v3xqqZqP1KH ljKJpeYdArNziSvpDIWBFRvaN3hE+KHE5oJfpzdyp/YntwklJhyItI96BICfOrx75i+T YG3tpzgIP1DEh3SSeuu+Tq2eFyfQK0UrJuDaAZIvPyC3zBEGXaHd0N1nu9/wwKDIJehi PKzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:to:from:subject:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=KQB+t4JEuanyux4++9PXPnDGwe8ws4SvjuQra07eC24=; b=tPlQnqVV/2WZKe284mhL5xgV4oK8aQaZFK19M1913XVVvHo3VjcbADi0IliuYscvh4 anlMzc88QaBRaO0p8FmNEbLQwOvctMTQVdP/a71agjbI0eG5LrXAkGQv8I6/4TrrsNng ZNKLp7yPoiSikaLp3CtS7uSoLBls1CZqpgk4siJgs5ofL0rB41IJ2GH6DqQ5jyU5EY8G 7foCxLpNAAbjeqU6GT0wYcwDG0XdCT1Ojuc8e4MN0AiCZ2aNCuRYrPtfjI1pewOjMoiL 0HiU26M5SIeI9W3gZQ+vhghoxCCYB5blicHdbJ7VNyHpzp45ztypf7kuCa5SBLnnbBQj TuSg== X-Gm-Message-State: AOAM5326D4CB6xonSCTO2I/TpXjrjfkBNJ+F1EJU1bJ/wRLdzcJKrIOS aGIWvWkayTdPinM41qOU0riCw43FLP0= X-Google-Smtp-Source: ABdhPJyUnTviLjMdJBX8pxXSkckDXWzuMsc6nYid05rFnyDvcqi3cnIhi2IDn5hwNZIEUSbwDaCsUg== X-Received: by 2002:a05:600c:a4b:: with SMTP id c11mr4714033wmq.97.1632230626163; Tue, 21 Sep 2021 06:23:46 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id l13sm18824451wrb.11.2021.09.21.06.23.44 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Sep 2021 06:23:45 -0700 (PDT) To: control@debbugs.gnu.org From: Dmitry Gutov Subject: unarchive 47287 Message-ID: <5cefcd77-23d7-2982-c05d-bb6e2e0cacfa@yandex.ru> Date: Tue, 21 Sep 2021 16:23:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) unarchive 47287 From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 13:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Theodor Thornhill Cc: "Basil L. Contovounesios" , 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.163223068812516 (code B ref 47287); Tue, 21 Sep 2021 13:25:01 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Sep 2021 13:24:48 +0000 Received: from localhost ([127.0.0.1]:45387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSflQ-0003Fo-Ep for submit@debbugs.gnu.org; Tue, 21 Sep 2021 09:24:48 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:36656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSflP-0003Fa-0P for 47287@debbugs.gnu.org; Tue, 21 Sep 2021 09:24:47 -0400 Received: by mail-wr1-f41.google.com with SMTP id g16so39155240wrb.3 for <47287@debbugs.gnu.org>; Tue, 21 Sep 2021 06:24:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Gukv10dognPP0FUqcxpYhHCvTc9bdlL5pf6CTl2xBZA=; b=fFmh+WZjH2nPopUOWTqxeJMoIDrbBNnEODWwOnybeHJynYg51elLGSg66WuCb8pVdx Jl66C1A9tPv5ZQJZ0nkJckmVpNB3NgergQqh6++ZOdezX9YfPS68dSTJ968kiZ8nEmv9 knHuvGhGdh2/aGKkATim2hyA5Vb5dC21OIGnmSI/P76NCo+LDM3ZKzkDiwZyYEHY+XNp vJP7u0J5q3Vx7OocqRyIEYFcyMxbgGklCJarhvPFLTeRgeUh5qE0vKFbmCcZfrNfGEB8 FGw52jN7ATdCsSaqvm0cjoVdV9NTLobddMw8F3lHRmnNdN1sVgvAQ1vxkeZG6WN7yfLa P0eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Gukv10dognPP0FUqcxpYhHCvTc9bdlL5pf6CTl2xBZA=; b=dvyMKuMkqIE1xMFR+7LfbGliqU+mGAFEJ/4aI9ZgHKQEwoEHocBh0AT+GSOHjY0yGQ yeMtUQbpojZF7jzLw7sayd3NCh5+e4+7vBZN9PvqV1Otj5v0PhdXy4fcmFJFmcvVSj+Z xEk+cQT2o43cDygTvKaBEfEXG+MO5oGuGMMobCw+mgYv1KQcfIDDMUigiUuM/O1Um2bb xaaQk0h4Lnz0ysTuMysgNPuiluVtUFBAUTiwgG8qoSKBR2Yw1+7w780nLqQGZgJpmh2l FnFivzlk/8NlJrwsc5QIXT+YbNC2TLKqgZtpl84wKvaT5CUlvvBAuc7yysD7jIne6U9w ai5Q== X-Gm-Message-State: AOAM530lmh6oBdtrH6JytQZmE4F6joeFWi+OOWFkUvCYJU9j9j7iqX9u R8y/3L6sSbnXNvTgmWZQ7+5Z4iQPVB8= X-Google-Smtp-Source: ABdhPJy/unihFE78sk+Paf7UUpPOUl811EITo5SAodguw5MdvtUap0uO5JE0Xq1wwljqTF8kh+eqSQ== X-Received: by 2002:adf:d209:: with SMTP id j9mr34659647wrh.97.1632230680739; Tue, 21 Sep 2021 06:24:40 -0700 (PDT) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id c185sm3232020wma.8.2021.09.21.06.24.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Sep 2021 06:24:40 -0700 (PDT) References: From: Dmitry Gutov Message-ID: <155e5c7e-8464-87b6-3a59-bd42ea008a18@yandex.ru> Date: Tue, 21 Sep 2021 16:24:35 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Hi Theodor, On 25.03.2021 09:29, Theodor Thornhill wrote: > Theodor Thornhill writes: >>> If you know how to fix any of that, help welcome. > > Looks like it was fixed for me - thanks, Dmitry and Glenn Morris :-) Just a heads-up: I've pushed a commit renaming the command to 'project-forget-project', for symmetry with 'project-remember-project' which has been with us longer. No compatibility alias since it's never been in an Emacs release, and it's not a frequently used command, but let me know if it's really needed. From unknown Sun Jun 22 22:45:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Sep 2021 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47287 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: Dmitry Gutov Cc: "Basil L. Contovounesios" , 47287@debbugs.gnu.org Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.163224940027748 (code B ref 47287); Tue, 21 Sep 2021 18:37:02 +0000 Received: (at 47287) by debbugs.gnu.org; 21 Sep 2021 18:36:40 +0000 Received: from localhost ([127.0.0.1]:47964 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkdE-0007DU-E6 for submit@debbugs.gnu.org; Tue, 21 Sep 2021 14:36:40 -0400 Received: from out2.migadu.com ([188.165.223.204]:27784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSkd9-0007DC-Um for 47287@debbugs.gnu.org; Tue, 21 Sep 2021 14:36:38 -0400 Date: Tue, 21 Sep 2021 20:36:31 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1632249393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2TWCSuJsDzHIkTGbnem5NIgsX93onx/WoGEmskxe2nE=; b=DdEM1xHVW3HaPZ/xEwGISPvmyntb2Md5H6PmfVNsPB5HaqNtsHk7J8dfJggYjuTPbXnlu6 M1jx6RHW+xVu6sSjMUSQ2cPizRV3LuoC03/6Y3EJQwZAmONRuUTNRh4tLhmqwoTI1fSszi tlN8X/AHygXp4Pdd5/zX3PjITnW95l33Ix3L5A8hT01anKByxle+zJ9HnDWDNl0uQjV4hQ dEP6TpKhL7Hj4eR3v4hpm5WjT8dsJ8fM1bQ6fy2VN9czG7QLTMLVJl/yKZVusytQt4GpaI xgFJyQQTqOcFh5pqilu3Wlt+3Kwb4/53XiUIQB9b86FLMVjGi5LEUaJJmIlOKQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Theodor Thornhill In-Reply-To: <155e5c7e-8464-87b6-3a59-bd42ea008a18@yandex.ru> References: <155e5c7e-8464-87b6-3a59-bd42ea008a18@yandex.ru> Message-ID: <0B4C0381-A612-416B-8569-5AE7B8625D54@thornhill.no> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On September 21, 2021 3:24:35 PM GMT+02:00, Dmitry Gutov wrote: >Hi Theodor, > >On 25=2E03=2E2021 09:29, Theodor Thornhill wrote: >> Theodor Thornhill writes: >>>> If you know how to fix any of that, help welcome=2E >>=20 >> Looks like it was fixed for me - thanks, Dmitry and Glenn Morris :-) > >Just a heads-up: I've pushed a commit renaming the command to=20 >'project-forget-project', for symmetry with 'project-remember-project'=20 >which has been with us longer=2E > >No compatibility alias since it's never been in an Emacs release, and=20 >it's not a frequently used command, but let me know if it's really needed= =2E No need from my end, but thanks a lot for the heads up :) Theo