From 89068516b3e1c5c77ea843d8a5bec52274c0fbe5 Mon Sep 17 00:00:00 2001
From: Philipp Stephani
Date: Mon, 4 Dec 2023 14:17:31 +0100
Subject: [PATCH] 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.
---
doc/lispref/files.texi | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 6a8bd69b102..69f8ebbfab7 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -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.)
+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
--
2.39.2