diff options
| author | Richard M. Stallman | 2006-12-17 20:13:13 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2006-12-17 20:13:13 +0000 |
| commit | 40a658890ed69cddca80e58107bccde276aeace0 (patch) | |
| tree | 0d42dbc78855e84234be2c9a2a39d7d0b11c5a56 | |
| parent | aaf469fc3d293981e8ed3d50f558cb31b1614c97 (diff) | |
| download | emacs-40a658890ed69cddca80e58107bccde276aeace0.tar.gz emacs-40a658890ed69cddca80e58107bccde276aeace0.zip | |
(File Name Completion): Document PREDICATE arg to file-name-completion.
| -rw-r--r-- | lispref/files.texi | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lispref/files.texi b/lispref/files.texi index 03e5db318f4..36e44dbece6 100644 --- a/lispref/files.texi +++ b/lispref/files.texi | |||
| @@ -2232,10 +2232,13 @@ default directory, and has five files whose names begin with @samp{f}: | |||
| 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 |