Function: file-name-all-completions
file-name-all-completions is a function defined in dired.c.
Signature
(file-name-all-completions FILE DIRECTORY)
Documentation
Return a list of all completions of file name FILE in directory DIRECTORY.
These are all file names in directory DIRECTORY which begin with FILE.
This function ignores some of the possible completions as determined
by completion-regexp-list, which see. completion-regexp-list
is matched against file and directory names relative to DIRECTORY.
Probably introduced at or before Emacs version 18.
Source Code
// Defined in /usr/src/emacs/src/dired.c
{
Lisp_Object handler;
directory = Fexpand_file_name (directory, Qnil);
/* If the directory name has special constructs in it,
call the corresponding file name handler. */
handler = Ffind_file_name_handler (directory, Qfile_name_all_completions);
if (!NILP (handler))
return call3 (handler, Qfile_name_all_completions, file, directory);
/* If the file name has special constructs in it,
call the corresponding file name handler. */
handler = Ffind_file_name_handler (file, Qfile_name_all_completions);
if (!NILP (handler))
return call3 (handler, Qfile_name_all_completions, file, directory);
return file_name_completion (file, directory, 1, Qnil);
}