]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix type error in package-vc prompt function
authorPhilip Kaludercic <philipk@posteo.net>
Thu, 10 Nov 2022 18:18:00 +0000 (19:18 +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--read-package-name):  Pass
(not allow-url) as REQUIRE-MATCH, not as INITIAL-INPUT.

lisp/emacs-lisp/package-vc.el

index 620b21d0a1b932d4977ffde81bc6bcb53b88f595..ad12008fce440cb6cf8db26dbff17515f66da587 100644 (file)
@@ -536,7 +536,7 @@ source packages that have already been installed."
                            (and-let* ((extras (package-desc-extras (cadr pkg)))
                                       (url (alist-get :url extras))
                                       ((package-vc--guess-backend url)))))))
-                   nil (not allow-url)))
+                   (not allow-url)))
 
 (defun package-vc--read-package-desc (prompt &optional installed)
   "Query the user for a source package and return a description with PROMPT.