* lisp/emacs-lisp/package.el (package-refresh-contents): Run
asynchronously when invoked interactively.
* etc/NEWS: Mention the change.
(cherry picked from commit
4cc8709ac2ceb0888ed1868292400049b98fe642)
inform Emacs about the latest versions of all packages it offers,
and make them available for download.
Optional argument ASYNC specifies whether to perform the
-downloads in the background."
- (interactive)
+downloads in the background. This is always the case when the command
+is invoked interactively."
+ (interactive (list t))
+ (when async
+ (message "Refreshing package contents..."))
(unless (file-exists-p package-user-dir)
(make-directory package-user-dir t))
(let ((default-keyring (expand-file-name "package-keyring.gpg"