Subject: bug#36707: [PATCH] Signal user-error on duplicate package refresh

From: "Basil L. Contovounesios" <[email-masked]>
Date: Thu, 18 Jul 2019 22:14:55 +0100

Stefan Kangas <[email-masked]> writes:

> In the "*Packages*" buffer (M-x package-list-packages), if I hit "r" many times
> it will try to initiate more refreshes even if the first one has not finished
> yet.  This is unnecessary and potentially confusing.
>
> This patch makes it check if there is already an refresh in progress and signal
> a user-error if there is one.

Would it not be possible/better to discard the existing refresh and
start a new one, instead of signalling an error?  This would help
e.g. when a refresh hangs for whatever reason.

Thanks,

-- 
Basil