GNU bug report logs - #55470
[PATCH] Add package-delete-regexp

Previous Next

Package: emacs;

Reported by: "Marwan L." <techmetx11 <at> disroot.org>

Date: Tue, 17 May 2022 01:01:03 UTC

Severity: wishlist

Tags: moreinfo, patch

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 55470 in the body.
You can then email your comments to 55470 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Tue, 17 May 2022 01:01:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Marwan L." <techmetx11 <at> disroot.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 May 2022 01:01:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Marwan L." <techmetx11 <at> disroot.org>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add package-delete-regexp
Date: Tue, 17 May 2022 00:25:30 +0100
[Message part 1 (text/plain, inline)]
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

The function will also tell you how much packages it will delete (in a
temporary buffer) and prompt for a Yes or No answer

[package.diff (text/plain, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Tue, 17 May 2022 17:50:02 GMT) Full text and rfc822 format available.

Message #8 received at 55470 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Marwan L." <techmetx11 <at> disroot.org>
Cc: 55470 <at> debbugs.gnu.org
Subject: Re: bug#55470: [PATCH] Add package-delete-regexp
Date: Tue, 17 May 2022 19:48:53 +0200
"Marwan L." <techmetx11 <at> disroot.org> 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
>
> The function will also tell you how much packages it will delete (in a
> temporary buffer) and prompt for a Yes or No answer

Thanks; makes sense to me.  The patch is longer than the limit for
"trivial" changes, so we'd need for the copyright to be assigned to the
FSF before accepting it.  Would you be willing to sign such paperwork?

If so, below is the form to get started:


Please email the following information to assign <at> gnu.org, and we
will send you the assignment form for your past and future changes.

Please use your full legal name (in ASCII characters) as the subject
line of the message.
----------------------------------------------------------------------
REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES

[What is the name of the program or package you're contributing to?]
Emacs

[Did you copy any files or text written by someone else in these changes?
Even if that material is free software, we need to know about it.]

[Do you have an employer who might have a basis to claim to own
your changes?  Do you attend a school which might make such a claim?]

[For the copyright registration, what country are you a citizen of?]

[What year were you born?]

[Please write your email address here.]

[Please write your postal address here.]

[Which files have you changed so far, and which new files have you written
so far?]




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 17 May 2022 17:50:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Wed, 18 May 2022 23:18:02 GMT) Full text and rfc822 format available.

Message #13 received at 55470 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: "Marwan L." <techmetx11 <at> disroot.org>
Cc: 55470 <at> debbugs.gnu.org
Subject: Re: bug#55470: [PATCH] Add package-delete-regexp
Date: Wed, 18 May 2022 23:17:26 +0000
"Marwan L." <techmetx11 <at> disroot.org> 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)?

> The function will also tell you how much packages it will delete (in a
> temporary buffer) and prompt for a Yes or No answer




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Thu, 19 May 2022 12:24:03 GMT) Full text and rfc822 format available.

Message #16 received at 55470 <at> debbugs.gnu.org (full text, mbox):

From: "Marwan L." <techmetx11 <at> disroot.org>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 55470 <at> debbugs.gnu.org
Subject: Re: bug#55470: [PATCH] Add package-delete-regexp
Date: Thu, 19 May 2022 13:04:34 +0100
On Wed, May 18, 2022 at 11:17:26PM +0000, Philip Kaludercic wrote:
> "Marwan L." <techmetx11 <at> disroot.org> 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Thu, 19 May 2022 14:27:01 GMT) Full text and rfc822 format available.

Message #19 received at 55470 <at> debbugs.gnu.org (full text, mbox):

From: Philip Kaludercic <philipk <at> posteo.net>
To: "Marwan L." <techmetx11 <at> disroot.org>
Cc: 55470 <at> debbugs.gnu.org
Subject: Re: bug#55470: [PATCH] Add package-delete-regexp
Date: Thu, 19 May 2022 14:26:17 +0000
"Marwan L." <techmetx11 <at> disroot.org> writes:

> On Wed, May 18, 2022 at 11:17:26PM +0000, Philip Kaludercic wrote:
>> "Marwan L." <techmetx11 <at> disroot.org> 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

Apparently the prefix argument does not work, though you can do the same
with a macro.  Maybe adding a "t" to toggle the selection, though this
would be a very specific use-case.

What do you think about extending the package-menu-filter commands with
a way to mark all packages instead of filtering?

> `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

There is also M-x package-list-packages-no-fetch.

> You are free to close this patch if you want to

No, that is not my intention, I just wanted to clarify a point.

>> 
>> > The function will also tell you how much packages it will delete (in a
>> > temporary buffer) and prompt for a Yes or No answer




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Thu, 19 May 2022 18:52:01 GMT) Full text and rfc822 format available.

Message #22 received at 55470 <at> debbugs.gnu.org (full text, mbox):

From: "Marwan L." <techmetx11 <at> disroot.org>
To: Philip Kaludercic <philipk <at> posteo.net>
Cc: 55470 <at> debbugs.gnu.org
Subject: Re: bug#55470: [PATCH] Add package-delete-regexp
Date: Thu, 19 May 2022 19:15:20 +0100
On Thu, May 19, 2022 at 02:26:17PM +0000, Philip Kaludercic wrote:
> "Marwan L." <techmetx11 <at> disroot.org> writes:
> 
> > On Wed, May 18, 2022 at 11:17:26PM +0000, Philip Kaludercic wrote:
> >> "Marwan L." <techmetx11 <at> disroot.org> 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
> 
> Apparently the prefix argument does not work, though you can do the same
> with a macro.  Maybe adding a "t" to toggle the selection, though this
> would be a very specific use-case.
> 
> What do you think about extending the package-menu-filter commands with
> a way to mark all packages instead of filtering?
Good idea. I haven't thought of that, Maybe I should have done that
instead of writing another function

> 
> > `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
> 
> There is also M-x package-list-packages-no-fetch.
Slightly longer name, but still okay

> 
> > You are free to close this patch if you want to
> 
> No, that is not my intention, I just wanted to clarify a point.
Oh, sorry.

> 
> >> 
> >> > The function will also tell you how much packages it will delete (in a
> >> > temporary buffer) and prompt for a Yes or No answer




Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 07 Jun 2022 06:50:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Mon, 11 Jul 2022 13:21:01 GMT) Full text and rfc822 format available.

Message #27 received at 55470 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Marwan L." <techmetx11 <at> disroot.org>
Cc: 55470 <at> debbugs.gnu.org
Subject: Re: bug#55470: [PATCH] Add package-delete-regexp
Date: Mon, 11 Jul 2022 15:20:02 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Thanks; makes sense to me.  The patch is longer than the limit for
> "trivial" changes, so we'd need for the copyright to be assigned to the
> FSF before accepting it.  Would you be willing to sign such paperwork?

This was a month ago, but I don't think I got a response on this?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#55470; Package emacs. (Tue, 09 Aug 2022 15:49:01 GMT) Full text and rfc822 format available.

Message #30 received at 55470 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Marwan L." <techmetx11 <at> disroot.org>
Cc: 55470 <at> debbugs.gnu.org
Subject: Re: bug#55470: [PATCH] Add package-delete-regexp
Date: Tue, 09 Aug 2022 17:48:33 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> Thanks; makes sense to me.  The patch is longer than the limit for
>> "trivial" changes, so we'd need for the copyright to be assigned to the
>> FSF before accepting it.  Would you be willing to sign such paperwork?
>
> This was a month ago, but I don't think I got a response on this?

And there was no response to this in a month, so it doesn't sound like
we'll be making any progress here, and I'm therefore closing this bug
report.

If progress can be made, please respond to the debbugs address and we'll
reopen.




bug closed, send any further explanations to 55470 <at> debbugs.gnu.org and "Marwan L." <techmetx11 <at> disroot.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 09 Aug 2022 15:49:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 07 Sep 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 230 days ago.

Previous Next


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