From 813478c8557541efa918de18f7d863a33210a598 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 22 Mar 2020 11:57:06 +0100 Subject: [PATCH] Revert "Signal user-error on duplicate package refresh" (Bug#39187) This reverts commit a6d87ea045d9df73f70765bedfb02522043efd9b. --- lisp/emacs-lisp/package.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index f5a9055b5b7..4312ab9ca9a 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -3179,15 +3179,12 @@ Return (PKG-DESC [NAME VERSION STATUS DOC])." (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. Signal a -user-error if there is already a refresh running asynchronously. +`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) - (when (and package-menu-async package--downloads-in-progress) - (user-error "Package refresh is already in progress, please wait...")) (setq package-menu--old-archive-contents package-archive-contents) (setq package-menu--new-package-list nil) (package-refresh-contents package-menu-async)) -- 2.39.2