Function: package-menu--refresh-contents
package-menu--refresh-contents is a byte-compiled function defined in
package.el.gz.
Signature
(package-menu--refresh-contents &optional ARG NOCONFIRM)
Documentation
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.
package-menu-mode sets revert-buffer-function to this
function. The args ARG and NOCONFIRM, passed from
revert-buffer, are ignored.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/package.el.gz
(defun package-menu--refresh-contents (&optional _arg _noconfirm)
"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.
`package-menu-mode' sets `revert-buffer-function' to this
function. The args ARG and NOCONFIRM, passed from
`revert-buffer', are ignored."
(package--ensure-package-menu-mode)
(setq package-menu--old-archive-contents package-archive-contents)
(setq package-menu--new-package-list nil)
(package-refresh-contents package-menu-async))