comparison lispref/files.texi @ 74688:29c73296a044

(File Name Completion): Document PREDICATE arg to file-name-completion.
author Richard M. Stallman <rms@gnu.org>
date Sun, 17 Dec 2006 20:13:13 +0000
parents 61cb5aae3bc3
children 6d19c76d81c5 bc10a33dd40b
comparison
equal deleted inserted replaced
74687:9354f251fbae 74688:29c73296a044
2230 @result{} ("foo") 2230 @result{} ("foo")
2231 @end group 2231 @end group
2232 @end example 2232 @end example
2233 @end defun 2233 @end defun
2234 2234
2235 @defun file-name-completion filename directory 2235 @defun file-name-completion filename directory &optional predicate
2236 This function completes the file name @var{filename} in directory 2236 This function completes the file name @var{filename} in directory
2237 @var{directory}. It returns the longest prefix common to all file names 2237 @var{directory}. It returns the longest prefix common to all file names
2238 in directory @var{directory} that start with @var{filename}. 2238 in directory @var{directory} that start with @var{filename}. If
2239 @var{predicate} is non-@code{nil} then it ignores possible completions
2240 that don't satisfy @var{predicate}, after calling that function
2241 with one argument, the expanded absolute file name.
2239 2242
2240 If only one match exists and @var{filename} matches it exactly, the 2243 If only one match exists and @var{filename} matches it exactly, the
2241 function returns @code{t}. The function returns @code{nil} if directory 2244 function returns @code{t}. The function returns @code{nil} if directory
2242 @var{directory} contains no name starting with @var{filename}. 2245 @var{directory} contains no name starting with @var{filename}.
2243 2246