GNU bug report logs -
#35504
26.2; Key `g' should run `package-menu-refresh' in the *Packages* buffer
Previous Next
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 #33 received at 35504 <at> debbugs.gnu.org (full text, mbox):
Stefan Kangas <stefan <at> marxist.se> writes:
> Stefan Monnier <monnier <at> iro.umontreal.ca> writes:
>
>> > I also agree. How about the attached patch?
>>
>> 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?
In addition to Stefan M.'s comments, I just noticed a couple of nits:
> -(defun package-menu-refresh ()
> +(defun package-menu-revert (&optional arg noconfirm)
If the arguments aren't used, they should be prefixed with underscores.
> "In Package Menu, download the Emacs Lisp package archive.
> Fetch the contents of each archive specified in
> `package-archives', and then refresh the package menu. Signal a
> -user-error if there is already a refresh running asynchronously."
> +user-error if there is already a refresh running asynchronously.
> +
> +`package-menu-mode' sets ‘revert-buffer-function’ to this
> +function. The args ARG and NOCONFIRM, passed from
> +‘revert-buffer’, are ignored."
revert-buffer-function and revert-buffer are quoted with curly single
quotes instead of the usual grave+apostrophe.
Thanks,
--
Basil
This bug report was last modified 5 years and 195 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.