Remove overlays from package menu when performing transaction

* lisp/emacs-lisp/package.el (package-menu--perform-transaction):
Remove all overlays at the beginning of the function.  (Bug#81213)
This commit is contained in:
Philip Kaludercic 2026-08-06 20:58:57 +02:00
parent 254594306c
commit 7119808569
No known key found for this signature in database

View file

@ -4103,6 +4103,7 @@ objects removed."
(defun package-menu--perform-transaction (install-list delete-list)
"Install packages in INSTALL-LIST and delete DELETE-LIST.
Return nil if there were no errors; non-nil otherwise."
(remove-overlays (point-min) (point-max) 'pkg-menu-ov t)
(let ((errors nil))
(if install-list
(let ((status-format (format ":Installing %%d/%d"