aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-01 18:16:22 +0200
committerEli Zaretskii2015-12-01 18:16:22 +0200
commitb99a34bcb030d59e0e272b3379d1725a6eb01d95 (patch)
tree234daeaec7f2fd12ff3d9d4fa5d1039bc93d51f0 /doc
parente702ab8d843dd416b6721c2e05be832d69ad1977 (diff)
downloademacs-b99a34bcb030d59e0e272b3379d1725a6eb01d95.tar.gz
emacs-b99a34bcb030d59e0e272b3379d1725a6eb01d95.zip
Document 'directory-files-recursively'
* lisp/files.el (directory-files-recursively): Doc fix. Rename the argument MATCH to REGEXP, to be more explicit about its form. * doc/lispref/files.texi (Contents of Directories): Improve the documentation of 'directory-files-recursively'. Add cross-references. * etc/NEWS: Move the entry for 'directory-files-recursively' to its place and mark it documented.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/files.texi20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 9a1b2cd217f..e8ed7ccd9f7 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2632,12 +2632,20 @@ An error is signaled if @var{directory} is not the name of a directory
2632that can be read. 2632that can be read.
2633@end defun 2633@end defun
2634 2634
2635@defun directory-files-recursively directory match &optional include-directories 2635@defun directory-files-recursively directory regexp &optional include-directories
2636Return all files under @var{directory} whose file names match 2636Return all files under @var{directory} whose names match @var{regexp}.
2637@var{match} recursively. The file names are returned depth first, 2637This function searches the specified @var{directory} and its
2638meaning that contents of sub-directories are returned before contents 2638sub-directories, recursively, for files whose basenames (i.e., without
2639of the directories. If @var{include-directories} is non-@code{nil}, 2639the leading directories) match the specified @var{regexp}, and returns
2640also return directory names that have matching names. 2640a list of the absolute file names of the matching files
2641(@pxref{Relative File Names, absolute file names}). The file names
2642are returned in depth-first order, meaning that files in some
2643sub-directory are returned before the files in its parent directory.
2644In addition, matching files found in each subdirectory are sorted
2645alphabetically by their basenames. By default, directories whose
2646names match @var{regexp} are omitted from the list, but if the
2647optional argument @var{include-directories} is non-@code{nil}, they
2648are included.
2641@end defun 2649@end defun
2642 2650
2643@defun directory-files-and-attributes directory &optional full-name match-regexp nosort id-format 2651@defun directory-files-and-attributes directory &optional full-name match-regexp nosort id-format