From: Philip Kaludercic Date: Sun, 6 Nov 2022 08:47:39 +0000 (+0100) Subject: Handle strings as keys in 'package-vc-ensure-packages' X-Git-Tag: emacs-29.0.90~1616^2~97 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a4e4ceb47a5579bba7d156ae5535ab02085534de;p=emacs.git Handle strings as keys in 'package-vc-ensure-packages' * lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Inter sting keys while processing 'package-vc-selected-packages'. As requested by Rudolf Adamkovič. --- diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index 127a7e073f9..505d258969a 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -120,8 +120,9 @@ the `clone' function." (defvar package-vc-selected-packages) ; pacify byte-compiler (defun package-vc-ensure-packages () "Ensure packages specified in `package-vc-selected-packages' are installed." - (pcase-dolist (`(,(and (pred symbolp) name) . ,spec) - package-vc-selected-packages) + (pcase-dolist (`(,name . ,spec) package-vc-selected-packages) + (when (stringp name) + (setq name (intern name))) (let ((pkg-desc (cadr (assoc name package-alist #'string=)))) (unless (and name (package-installed-p name) (package-vc-p pkg-desc))