From 41474108529c6964ce1ad2da11ee36475a55634e Mon Sep 17 00:00:00 2001 From: Philip Kaludercic Date: Mon, 16 Mar 2026 18:23:22 +0100 Subject: [PATCH] ; Fix handling of string by the use-package keyword :vc This makes :vc behave more like 'package-vc-install'. * lisp/use-package/use-package-core.el (use-package-normalize/:vc): Translate :vc arguments that are just a string into a minimal package specification containing only a :url field, thus preventing a type error down the line. --- lisp/use-package/use-package-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/use-package/use-package-core.el b/lisp/use-package/use-package-core.el index 39b8f6969f4..75ac7ada8a7 100644 --- a/lisp/use-package/use-package-core.el +++ b/lisp/use-package/use-package-core.el @@ -1796,7 +1796,7 @@ node `(use-package) Creating an extension'." (pcase arg ((or 'nil 't) (list name)) ; guess name ((pred symbolp) (list arg)) ; use this name - ((pred stringp) (list name arg)) ; version string + guess name + ((pred stringp) (list name (list :url arg))) ; URL + guess name (`(,(pred keywordp) . ,(pred listp)) ; list + guess name (use-package-normalize--vc-arg (cons name arg))) (`(,(pred symbolp) . ,(or (pred listp) ; list/version string + name