summaryrefslogtreecommitdiff
path: root/doc/lispref/files.texi
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2022-10-09 06:31:06 +0200
committerStefan Kangas <stefankangas@gmail.com>2022-10-09 06:31:06 +0200
commita2dd9d683a02525183b5e692e42622c65639dda8 (patch)
treee9d91a430f3c0b39ec48b6791bfad09132b4a90d /doc/lispref/files.texi
parent9d47364634f96b2f2651a7f3942f8f87b920f02d (diff)
parent32ef7550edc887f1f8e052cb57a61c4e82b6eecd (diff)
downloademacs-a2dd9d683a02525183b5e692e42622c65639dda8.tar.gz
emacs-a2dd9d683a02525183b5e692e42622c65639dda8.tar.bz2
emacs-a2dd9d683a02525183b5e692e42622c65639dda8.zip
Merge from origin/emacs-28
32ef7550ed ; Improve documentation of 'file-in-directory-p'
Diffstat (limited to 'doc/lispref/files.texi')
-rw-r--r--doc/lispref/files.texi19
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index e1aa2de523c..0e8efa3297c 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -1253,14 +1253,6 @@ the @samp{smb} method. For all other connection methods, runtime
tests are performed.
@end defun
-@defun file-in-directory-p file dir
-This function returns @code{t} if @var{file} is a file in directory
-@var{dir}, or in a subdirectory of @var{dir}. It also returns
-@code{t} if @var{file} and @var{dir} are the same directory. It
-compares the truenames of the two directories. If @var{dir} does not
-name an existing directory, the return value is @code{nil}.
-@end defun
-
@defun vc-responsible-backend file
This function determines the responsible VC backend of the given
@var{file}. For example, if @file{emacs.c} is a file tracked by Git,
@@ -3100,6 +3092,17 @@ is called with one argument (the file or directory) and should return
non-@code{nil} if that directory is the one it is looking for.
@end defun
+@cindex parent directory of file
+@cindex ancestor directory of file
+@cindex file, ancestor directory of
+@defun file-in-directory-p file dir
+This function returns @code{t} if @var{file} is a file in directory
+@var{dir}, or in a subdirectory of @var{dir}. It also returns
+@code{t} if @var{file} and @var{dir} are the same directory. It
+compares the truenames of the two directories. If @var{dir} does not
+name an existing directory, the return value is @code{nil}.
+@end defun
+
@defun directory-files-and-attributes directory &optional full-name match-regexp nosort id-format count
This is similar to @code{directory-files} in deciding which files
to report on and how to report their names. However, instead