emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 89068516b3e: Don't claim to signal an error when deleting a non


From: Philipp Stephani
Subject: emacs-29 89068516b3e: Don't claim to signal an error when deleting a nonexisting file.
Date: Mon, 4 Dec 2023 08:19:11 -0500 (EST)

branch: emacs-29
commit 89068516b3e1c5c77ea843d8a5bec52274c0fbe5
Author: Philipp Stephani <p.stephani2@gmail.com>
Commit: Philipp Stephani <p.stephani2@gmail.com>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]