Mercurial > emacs
changeset 105358:1510631c4c06
* files.texi (Directories): delete-directory has an optional
parameter RECURSIVE.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Thu, 01 Oct 2009 15:46:03 +0000 |
parents | da4cd4818c56 |
children | 8fe4d0f3cd27 |
files | doc/lispref/files.texi |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/lispref/files.texi Thu Oct 01 15:44:10 2009 +0000 +++ b/doc/lispref/files.texi Thu Oct 01 15:46:03 2009 +0000 @@ -2501,11 +2501,12 @@ @code{mkdir} is an alias for this. @end deffn -@deffn Command delete-directory dirname +@deffn Command delete-directory dirname &optional recursive This command deletes the directory named @var{dirname}. The function @code{delete-file} does not work for files that are directories; you -must use @code{delete-directory} for them. If the directory contains -any files, @code{delete-directory} signals an error. +must use @code{delete-directory} for them. If @var{recursive} is +@code{nil}, and the directory contains any files, +@code{delete-directory} signals an error. @code{delete-directory} only follows symbolic links at the level of parent directories.