diff options
Diffstat (limited to 'doc/lispref/files.texi')
-rw-r--r-- | doc/lispref/files.texi | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index f8781d4895b..fd4b9a7bc5f 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -1,6 +1,6 @@ @c -*-texinfo-*- @c This is part of the GNU Emacs Lisp Reference Manual. -@c Copyright (C) 1990--1995, 1998--1999, 2001--2023 Free Software +@c Copyright (C) 1990--1995, 1998--1999, 2001--2024 Free Software @c Foundation, Inc. @c See the file elisp.texi for copying conditions. @node Files @@ -1797,7 +1797,7 @@ If @var{newname} exists, then it must be an empty directory if @var{oldname} is a directory and a non-directory otherwise. @end deffn -@deffn Command copy-file oldname newname &optional ok-if-already-exists time preserve-uid-gid preserve-extended-attributes +@deffn Command copy-file oldname newname &optional ok-if-already-exists time preserve-uid-gid preserve-permissions This command copies the file @var{oldname} to @var{newname}. An error is signaled if @var{oldname} is not a regular file. If @var{newname} names a directory, it copies @var{oldname} into that directory, @@ -1865,9 +1865,10 @@ multiple names, it continues to exist under the other names. If @var{filename} is a symbolic link, @code{delete-file} deletes only the symbolic link and not its target. -A suitable kind of @code{file-error} error is signaled if the file -does not exist, or is not deletable. (On GNU and other POSIX-like -systems, a file is deletable if its directory is writable.) +The command signals a suitable kind of @code{file-error} error if +@var{filename} cannot be deleted. (On GNU and other POSIX-like +systems, a file can be deleted if its directory is writable.) If the +file does not exist, this command will not signal any error. If the optional argument @var{trash} is non-@code{nil} and the variable @code{delete-by-moving-to-trash} is non-@code{nil}, this |