From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Marwan L." via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#55470: [PATCH] Add package-delete-regexp Date: Thu, 19 May 2022 13:04:34 +0100 Message-ID: References: <87y1yytoqh.fsf@posteo.net> Reply-To: "Marwan L." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18069"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55470@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 19 14:24:44 2022 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 1nrfCu-0004UU-0M for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 14:24:44 +0200 Original-Received: from localhost ([::1]:59114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrfCs-0006V1-Ra for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 May 2022 08:24:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrfCF-0005t9-Gp for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 08:24:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40830) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nrfCF-0002mj-8S for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 08:24:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nrfCF-0007by-4h for bug-gnu-emacs@gnu.org; Thu, 19 May 2022 08:24:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Marwan L." Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 May 2022 12:24:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55470 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch moreinfo Original-Received: via spool by 55470-submit@debbugs.gnu.org id=B55470.165296302629198 (code B ref 55470); Thu, 19 May 2022 12:24:03 +0000 Original-Received: (at 55470) by debbugs.gnu.org; 19 May 2022 12:23:46 +0000 Original-Received: from localhost ([127.0.0.1]:34721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrfBy-0007ar-8x for submit@debbugs.gnu.org; Thu, 19 May 2022 08:23:46 -0400 Original-Received: from knopi.disroot.org ([178.21.23.139]:34106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nrewU-0007BM-16 for 55470@debbugs.gnu.org; Thu, 19 May 2022 08:07:46 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 842CD437BF; Thu, 19 May 2022 14:07:44 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id xY893Le1nrUd; Thu, 19 May 2022 14:07:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1652961890; bh=U/MGd7d8QCRDgb4Y06/B4V5aI8x4EqPmY/stZYxzqVE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=SWSWrmgq4rvkJd1mYJ+hiLbetsU2y9RfFpl+t8KrSCD6vrrYlGOPZorlS/UlDBeL+ QXXCCJIodS6aZBZzSO3XlJ0oFPiSe30V5DkWrIJC98yEjwMfoHVw+/2MuC57Ohnb0E qn/bIdnCvnulxf4qOCJfdLj/yZTQ7FzX2UXtHnU3MYGM8y9pPz7hKIXHs1e49d+3cr pBoLZneKHJylJxShb9WtszMgKbi0UypSyzUVEwf/vItfR0Oe0iwFnHmWVN24rx5XXo TtnUuZ9ITyxHJhOumKDkFz7+8vTLDOriv9pnZbEQSEG3ZJOKXYOUoPkrtCWaXgTHGf asYXOPhD4h2aQ== Content-Disposition: inline In-Reply-To: <87y1yytoqh.fsf@posteo.net> X-Mailman-Approved-At: Thu, 19 May 2022 08:23:42 -0400 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:232638 Archived-At: On Wed, May 18, 2022 at 11:17:26PM +0000, Philip Kaludercic wrote: > "Marwan L." writes: > > > This function allows you to delete packages, with names that match the > > regexp. This is makes operations like deleting multiple packages that > > begin with the same namespace (^company.*, ^treemacs.*, etc.) much > > easier to do > > What is the advantage of a separate function for deleting packages > compared to marking packages in the *Packages* buffer using "/ n" (that > also accepts a regular expression)? It depends on how much packages you have to go through. If you have tons of packages to mark deletion on, then it will most likely involve holding d (wish you could do C-u 100 d) and then doing x `M-x list-packages` will also automatically fetch the latest list of packages from your package archives, which is unnecessary There's a prefix argument that disables fetching, but I didn't know that before making this function nor this patch You are free to close this patch if you want to > > > The function will also tell you how much packages it will delete (in a > > temporary buffer) and prompt for a Yes or No answer