GNU bug report logs - #35504
26.2; Key `g' should run `package-menu-refresh' in the *Packages* buffer

Previous Next

Package: emacs;

Reported by: Rudi Schlatte <rudi <at> constantly.at>

Date: Tue, 30 Apr 2019 14:54:01 UTC

Severity: wishlist

Tags: patch

Found in version 26.2

Fixed in version 27.1

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Kangas <stefan <at> marxist.se>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 35504 <at> debbugs.gnu.org,
 Rudi Schlatte <rudi <at> constantly.at>
Subject: Re: bug#35504: 26.2; Key `g' should run `package-menu-refresh' in the
 *Packages* buffer
Date: Fri, 4 Oct 2019 17:09:09 +0200
[Message part 1 (text/plain, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
> >> Fine by me.  I wonder, tho: why not set revert-buffer-function and then
> >> redefine `package-menu-refresh` as an obsolete alias for `revert-buffer`?
> > Sure, I've tried to do that in the attached patch.  WDYT?
> [...]
> > +  (setq revert-buffer-function 'package-menu-revert)
> [...]
> > +(define-obsolete-function-alias 'package-menu-refresh 'package-menu-revert "27.1")
>
> Could we make package-menu-refresh to be an (obsolete) alias of
> `revert-buffer` instead (and make package-menu-revert an internal
> non-interactive function)?

Absolutely, thanks for the suggestion.  Fixed in the attached patch
together with the things Basil pointed out.

Please let me know what you think.

Best regards,
Stefan Kangas
[0001-Make-g-refresh-package-data-in-package-menu.patch (text/x-patch, attachment)]

This bug report was last modified 5 years and 194 days ago.

Previous Next


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