From 91c8c0cc9817f8382b65c99a1d2538c385bfc093 Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Fri, 27 Feb 2026 20:39:46 +0100 Subject: [PATCH] Fix prompting of packages for 'package-report-bug' * lisp/emacs-lisp/package.el (package--query-desc): Load 'package-alist' if this hasn't already occurred. (package-report-bug): Drop unnecessary ALIST argument when invoking 'package--query-desc'. --- lisp/emacs-lisp/package.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index bc4c87fe343..c30f7758df4 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -4802,7 +4802,7 @@ The optional argument ALIST must consist of elements with the form (PKG-NAME PKG-DESC). If not specified, it will default to `package-alist'." (or (tabulated-list-get-id) - (let ((alist (or alist package-alist))) + (let ((alist (or alist (package--alist)))) (cadr (assoc (completing-read "Package: " alist nil t) alist #'string=))))) @@ -4863,7 +4863,7 @@ will be signaled in that case." (defun package-report-bug (desc) "Prepare a message to send to the maintainers of a package. DESC must be a `package-desc' object." - (interactive (list (package--query-desc package-alist))) + (interactive (list (package--query-desc))) (let* ((maint (package-maintainers desc 'no-error)) (pkgdir (package-desc-dir desc)) (main-maint (if (eq pkgdir 'builtin)