From: Philip Kaludercic <philipk@posteo.net>
Date: Thu, 10 Nov 2022 18:18:00 +0000 (+0100)
Subject: Fix type error in package-vc prompt function
X-Git-Tag: emacs-29.0.90~1616^2~83
X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2b93d0e6f1f23e050d1be09efc71ed3f8571b661;p=emacs.git

Fix type error in package-vc prompt function

* lisp/emacs-lisp/package-vc.el (package-vc--read-package-name):  Pass
(not allow-url) as REQUIRE-MATCH, not as INITIAL-INPUT.
---

diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 620b21d0a1b..ad12008fce4 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -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.