]> git.eshelyaron.com Git - emacs.git/commitdiff
Handle strings as keys in 'package-vc-ensure-packages'
authorPhilip Kaludercic <philipk@posteo.net>
Sun, 6 Nov 2022 08:47:39 +0000 (09:47 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Thu, 17 Nov 2022 19:37:28 +0000 (20:37 +0100)
* lisp/emacs-lisp/package-vc.el (package-vc-ensure-packages): Inter
sting keys while processing 'package-vc-selected-packages'.

As requested by Rudolf Adamkovič.

lisp/emacs-lisp/package-vc.el

index 127a7e073f9a95cbfc3a27cedac0913fe611d31b..505d258969a753f3aeb01044d438345780145e99 100644 (file)
@@ -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))