mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-15 09:47:20 +00:00
Add docstring to project--read-file-cpd-relative
For discussion, see thread starting at: https://lists.gnu.org/archive/html/emacs-devel/2019-05/msg00460.html * lisp/progmodes/project.el (project--read-file-cpd-relative): Describe arglist as promised by user option project-read-file-name-function.
This commit is contained in:
parent
9ed0b55848
commit
b2c0eb63dd
@ -477,6 +477,10 @@ For the arguments list, see `project--read-file-cpd-relative'."
|
||||
(defun project--read-file-cpd-relative (prompt
|
||||
all-files &optional predicate
|
||||
hist default)
|
||||
"Read a file name, prompting with PROMPT.
|
||||
ALL-FILES is a list of possible file name completions.
|
||||
PREDICATE, HIST, and DEFAULT have the same meaning as in
|
||||
`completing-read'."
|
||||
(let* ((common-parent-directory
|
||||
(let ((common-prefix (try-completion "" all-files)))
|
||||
(if (> (length common-prefix) 0)
|
||||
|
Loading…
Reference in New Issue
Block a user