Skip to content

Commit

Permalink
package-recipe-read-name: Accept optional PROMPT argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Dec 26, 2024
1 parent 59af407 commit 23fd04c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package-recipe.el
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@
"Return a list of the names of packages with available recipes."
(directory-files package-build-recipes-dir nil "^[^.]"))

(defun package-recipe-read-name ()
(defun package-recipe-read-name (&optional prompt)
"Read the name of a package for which a recipe is available."
(completing-read "Package: " (package-recipe-recipes)))
(completing-read (or prompt "Package: ") (package-recipe-recipes)))

(defun package-recipe-lookup (name)
"Return a recipe object for the package named NAME.
Expand Down

0 comments on commit 23fd04c

Please sign in to comment.