From: Philipp Stephani Date: Mon, 4 Dec 2023 13:17:31 +0000 (+0100) Subject: Don't claim to signal an error when deleting a nonexisting file. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b66c6c8b6259710b9f86d4712b8d0e2975e19427;p=emacs.git Don't claim to signal an error when deleting a nonexisting file. The behavior has changed in commit 1a65afb7ecc2a52127d6164bad19313440237f9d to no longer signal an error on ENOENT. * doc/lispref/files.texi (Changing Files): Fix documentation about error reporting. --- diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index dc66ea8bc9c..26688ae7c96 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -1871,9 +1871,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.) +A suitable kind of @code{file-error} error is signaled is not +deletable. (On GNU and other POSIX-like systems, a file is deletable +if its directory is writable.) No error is signaled if the file does +not exist. If the optional argument @var{trash} is non-@code{nil} and the variable @code{delete-by-moving-to-trash} is non-@code{nil}, this