# HG changeset patch # User Richard M. Stallman # Date 1166386393 0 # Node ID 29c73296a0448e82dd713f4d74e3c9c4ff0dc684 # Parent 9354f251fbae25f385b69a1592022a9293cf554d (File Name Completion): Document PREDICATE arg to file-name-completion. diff -r 9354f251fbae -r 29c73296a044 lispref/files.texi --- a/lispref/files.texi Sun Dec 17 20:11:16 2006 +0000 +++ b/lispref/files.texi Sun Dec 17 20:13:13 2006 +0000 @@ -2232,10 +2232,13 @@ @end example @end defun -@defun file-name-completion filename directory +@defun file-name-completion filename directory &optional predicate This function completes the file name @var{filename} in directory @var{directory}. It returns the longest prefix common to all file names -in directory @var{directory} that start with @var{filename}. +in directory @var{directory} that start with @var{filename}. If +@var{predicate} is non-@code{nil} then it ignores possible completions +that don't satisfy @var{predicate}, after calling that function +with one argument, the expanded absolute file name. If only one match exists and @var{filename} matches it exactly, the function returns @code{t}. The function returns @code{nil} if directory