aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
authorPaul Eggert2016-10-18 09:36:03 -0700
committerPaul Eggert2016-10-18 09:37:13 -0700
commit704fd2a7ae5087f4108cc7a821f856fcdac99eb4 (patch)
tree91d5068d98c6d86755d9df25841ba7a3769962f0 /doc/lispref
parent0956a3e41eea6a651a40bdbb8f8310a23733a739 (diff)
downloademacs-704fd2a7ae5087f4108cc7a821f856fcdac99eb4.tar.gz
emacs-704fd2a7ae5087f4108cc7a821f856fcdac99eb4.zip
delete-directory no longer errors when racing
Problem reported by Glenn Morris for package-test.el (Bug#24714). * doc/lispref/files.texi (Create/Delete Dirs), etc/NEWS: Document this. * lisp/files.el (files--force): New function. (delete-directory): Use it to avoid error in this case.
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/files.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 9af5ce967c2..62e0199f1ff 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2855,6 +2855,9 @@ This command deletes the directory named @var{dirname}. The function
2855must use @code{delete-directory} for them. If @var{recursive} is 2855must use @code{delete-directory} for them. If @var{recursive} is
2856@code{nil}, and the directory contains any files, 2856@code{nil}, and the directory contains any files,
2857@code{delete-directory} signals an error. 2857@code{delete-directory} signals an error.
2858If recursive is non-@code{nil}, there is no error merely because the
2859directory or its files are deleted by some other process before
2860@code{delete-directory} gets to them.
2858 2861
2859@code{delete-directory} only follows symbolic links at the level of 2862@code{delete-directory} only follows symbolic links at the level of
2860parent directories. 2863parent directories.