diff options
| author | Chong Yidong | 2012-04-01 10:44:24 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-04-01 10:44:24 +0800 |
| commit | 42ee526b1adbe2ba7766203980a9d7089aae1a68 (patch) | |
| tree | 303bd603e8cca49ac61d124442c636ffaef714b2 /doc | |
| parent | 40f86458ccc6edbfd82c0b430fa24c627623321f (diff) | |
| download | emacs-42ee526b1adbe2ba7766203980a9d7089aae1a68.tar.gz emacs-42ee526b1adbe2ba7766203980a9d7089aae1a68.zip | |
Rename file-subdir-of-p to file-in-directory-p.
* lisp/files.el (file-in-directory-p): Rename from file-subdir-of-p.
Handle root directory properly.
(copy-directory): Caller changed.
* lisp/dired-aux.el (dired-copy-file-recursive, dired-create-files):
* lisp/net/tramp.el (tramp-file-name-for-operation): Callers changed.
* doc/lispref/files.texi (Kinds of Files): file-subdir-of-p renamed to
file-in-directory-p.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 15 |
2 files changed, 13 insertions, 7 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index cb7a5c48e15..5fb4220d86a 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-04-01 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * files.texi (Kinds of Files): file-subdir-of-p renamed to | ||
| 4 | file-in-directory-p. | ||
| 5 | |||
| 1 | 2012-03-31 Glenn Morris <rgm@gnu.org> | 6 | 2012-03-31 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * edebug.texi (Instrumenting Macro Calls): | 8 | * edebug.texi (Instrumenting Macro Calls): |
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 77c6766dc5d..b49e56158ad 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -1024,12 +1024,13 @@ This function returns @code{t} if the files @var{file1} and | |||
| 1024 | not exist, the return value is unspecified. | 1024 | not exist, the return value is unspecified. |
| 1025 | @end defun | 1025 | @end defun |
| 1026 | 1026 | ||
| 1027 | @defun file-subdir-of-p dir1 dir2 | 1027 | @defun file-in-directory-p file dir |
| 1028 | This function returns @code{t} if directory @var{dir1} is a | 1028 | This function returns @code{t} if @var{file} is a file in directory |
| 1029 | subdirectory of @var{dir2}, or if @var{dir1} and @var{dir2} are the | 1029 | @var{dir}, or in a subdirectory of @var{dir}. It also returns |
| 1030 | same directory. It compares the @code{file-truename} values of the | 1030 | @code{t} if @var{file} and @var{dir} are the same directory. It |
| 1031 | two directories (@pxref{Truenames}). If @var{dir2} | 1031 | compares the @code{file-truename} values of the two directories |
| 1032 | do not name an existing directory, the return value is @code{nil}. | 1032 | (@pxref{Truenames}). If @var{dir} does not name an existing |
| 1033 | directory, the return value is @code{nil}. | ||
| 1033 | @end defun | 1034 | @end defun |
| 1034 | 1035 | ||
| 1035 | @node Truenames | 1036 | @node Truenames |
| @@ -2718,7 +2719,7 @@ first, before handlers for jobs such as remote file access. | |||
| 2718 | @code{file-name-nondirectory}, | 2719 | @code{file-name-nondirectory}, |
| 2719 | @code{file-name-sans-versions}, @code{file-newer-than-file-p}, | 2720 | @code{file-name-sans-versions}, @code{file-newer-than-file-p}, |
| 2720 | @code{file-ownership-preserved-p}, | 2721 | @code{file-ownership-preserved-p}, |
| 2721 | @code{file-readable-p}, @code{file-regular-p}, @code{file-subdir-of-p}, | 2722 | @code{file-readable-p}, @code{file-regular-p}, @code{file-in-directory-p}, |
| 2722 | @code{file-symlink-p}, @code{file-truename}, @code{file-writable-p}, | 2723 | @code{file-symlink-p}, @code{file-truename}, @code{file-writable-p}, |
| 2723 | @code{file-equal-p}, @code{find-backup-file-name}, | 2724 | @code{file-equal-p}, @code{find-backup-file-name}, |
| 2724 | @c Not sure why it was here: @code{find-file-noselect},@* | 2725 | @c Not sure why it was here: @code{find-file-noselect},@* |