From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47287: 28.0.50; [PATCH] Add command project-remove-known-project Date: Sun, 21 Mar 2021 07:33:28 +0100 Message-ID: <06BAC477-828A-42E7-951F-ADD88E931354@thornhill.no> References: Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16914"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47287@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 21 07:34:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lNrf8-0004F3-Lm for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Mar 2021 07:34:10 +0100 Original-Received: from localhost ([::1]:50266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNrf7-0003Ei-7x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Mar 2021 02:34:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNrf0-0003DH-0f for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 02:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNrez-0003SU-N4 for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 02:34:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lNrez-0003OA-Jc for bug-gnu-emacs@gnu.org; Sun, 21 Mar 2021 02:34:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 47287-submit@debbugs.gnu.org id=B47287.161630841812994 (code B ref 47287); Sun, 21 Mar 2021 06:34:01 +0000 Original-Received: (at 47287) by debbugs.gnu.org; 21 Mar 2021 06:33:38 +0000 Original-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 Original-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 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== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: theo@thornhill.no X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202758 Archived-At: >> 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=