Stefan Kangas writes: > Stefan Monnier 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. I've attached an updated patch below. If there are no further comments, I intend to commit it in a couple of days. Best regards, Stefan Kangas