From 663f36f52c7c8e66e54d4e93ce037428bf1b3dd0 Mon Sep 17 00:00:00 2001 From: Spencer Baugh Date: Sun, 9 Jul 2023 12:59:50 -0400 Subject: [PATCH] package-report-bug: don't fail on custom groups defined by eval Previously we just assumed that the car of an element of custom-current-group-alist was a filename. But actually it can be nil if a custom group was defined by just evaling Lisp. * lisp/emacs-lisp/package.el (package-report-bug): Don't fail when a custom group was defined by eval. --- lisp/emacs-lisp/package.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index 3e6acd9b388..f67e99e04b5 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el @@ -4642,6 +4642,7 @@ package-report-bug (boundp (car ent)) (not (eq (custom--standard-value (car ent)) (default-toplevel-value (car ent)))) + (car group) (file-in-directory-p (car group) (package-desc-dir desc))) (push (car ent) vars)))) (dlet ((reporter-prompt-for-summary-p t)) -- 2.41.0