GNU bug report logs - #76590
'package-menu--refresh' should account for -archives and -pinned-packages

Previous Next

Package: emacs;

Reported by: Ship Mints <shipmints <at> gmail.com>

Date: Wed, 26 Feb 2025 15:29:02 UTC

Severity: normal

Done: Stefan Kangas <stefankangas <at> gmail.com>

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 76590 in the body.
You can then email your comments to 76590 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#76590; Package emacs. (Wed, 26 Feb 2025 15:29:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ship Mints <shipmints <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 26 Feb 2025 15:29:02 GMT) Full text and rfc822 format available.

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

From: Ship Mints <shipmints <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 'package-menu--refresh' should account for -archives and
 -pinned-packages
Date: Wed, 26 Feb 2025 10:27:44 -0500
[Message part 1 (text/plain, inline)]
I noticed that I have to force a refresh via 'package-refresh-contents'
after changing either 'package-archives' or 'package-pinned-packages' as
'package-menu--refresh' accounts only for changes to
'package--old-archive-priorities'.

If agreed, I'd be happy to submit a patch so that package.el will honor
changes to variables in between refreshes, and "invalidate" the implied
cache.

-Stephane
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76590; Package emacs. (Wed, 26 Feb 2025 16:47:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Ship Mints <shipmints <at> gmail.com>, 76590 <at> debbugs.gnu.org
Subject: Re: bug#76590: 'package-menu--refresh' should account for -archives
 and -pinned-packages
Date: Wed, 26 Feb 2025 16:46:50 +0000
Ship Mints <shipmints <at> gmail.com> writes:

> I noticed that I have to force a refresh via 'package-refresh-contents'
> after changing either 'package-archives' or 'package-pinned-packages' as
> 'package-menu--refresh' accounts only for changes to
> 'package--old-archive-priorities'.
>
> If agreed, I'd be happy to submit a patch so that package.el will honor
> changes to variables in between refreshes, and "invalidate" the implied
> cache.
>
> -Stephane

Do you have a recipe to reproduce it?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#76590; Package emacs. (Wed, 26 Feb 2025 17:33:01 GMT) Full text and rfc822 format available.

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

From: Ship Mints <shipmints <at> gmail.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: 76590 <at> debbugs.gnu.org
Subject: Re: bug#76590: 'package-menu--refresh' should account for -archives
 and -pinned-packages
Date: Wed, 26 Feb 2025 12:31:49 -0500
[Message part 1 (text/plain, inline)]
Good question.  I think this is a non-bug for the package-list menu.
Launching the menu indeed refreshes the package list every time, respecting
the most recent package-archive values.

It was more that running package-upgrade after adding a package-archive
didn't refresh the list, not knowing that key values had
changed, invalidating the package cache.  From now on, I'll combine changes
with either launching the menu or running package-refresh-contents
manually.  This will likely never happen again, now that my configuration
is where I want it to be.

Please close.

On Wed, Feb 26, 2025 at 11:46 AM Stefan Kangas <stefankangas <at> gmail.com>
wrote:

> Ship Mints <shipmints <at> gmail.com> writes:
>
> > I noticed that I have to force a refresh via 'package-refresh-contents'
> > after changing either 'package-archives' or 'package-pinned-packages' as
> > 'package-menu--refresh' accounts only for changes to
> > 'package--old-archive-priorities'.
> >
> > If agreed, I'd be happy to submit a patch so that package.el will honor
> > changes to variables in between refreshes, and "invalidate" the implied
> > cache.
> >
> > -Stephane
>
> Do you have a recipe to reproduce it?
>
[Message part 2 (text/html, inline)]

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Tue, 04 Mar 2025 02:35:02 GMT) Full text and rfc822 format available.

Notification sent to Ship Mints <shipmints <at> gmail.com>:
bug acknowledged by developer. (Tue, 04 Mar 2025 02:35:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Ship Mints <shipmints <at> gmail.com>
Cc: 76590-done <at> debbugs.gnu.org
Subject: Re: bug#76590: 'package-menu--refresh' should account for -archives
 and -pinned-packages
Date: Mon, 3 Mar 2025 18:33:54 -0800
Ship Mints <shipmints <at> gmail.com> writes:

> Please close.

Done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 Apr 2025 11:25:32 GMT) Full text and rfc822 format available.

This bug report was last modified 79 days ago.

Previous Next


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