aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-10-05 08:11:56 +0000
committerMichael Albinus2009-10-05 08:11:56 +0000
commit461bf92b6e447a343c38fe28fd048cd54e6e8256 (patch)
treebffaa8e72916478d8b1553aaef30033b53bbfee4
parent50b49aded74fa50ae983a29972d30ee455eccac2 (diff)
downloademacs-461bf92b6e447a343c38fe28fd048cd54e6e8256.tar.gz
emacs-461bf92b6e447a343c38fe28fd048cd54e6e8256.zip
* files.texi (Create/Delete Dirs): New command copy-directory.
-rw-r--r--doc/lispref/ChangeLog4
-rw-r--r--doc/lispref/files.texi20
2 files changed, 23 insertions, 1 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 81d3290702a..66e30109d41 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,7 @@
12009-10-05 Michael Albinus <michael.albinus@gmx.de>
2
3 * files.texi (Create/Delete Dirs): New command copy-directory.
4
12009-10-04 Juanma Barranquero <lekktu@gmail.com> 52009-10-04 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * anti.texi (Antinews): 7 * anti.texi (Antinews):
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi
index 81f342aee97..1da1b5c3369 100644
--- a/doc/lispref/files.texi
+++ b/doc/lispref/files.texi
@@ -2482,8 +2482,9 @@ which generate the listing with Lisp code.
2482@end defvar 2482@end defvar
2483 2483
2484@node Create/Delete Dirs 2484@node Create/Delete Dirs
2485@section Creating and Deleting Directories 2485@section Creating, Copying and Deleting Directories
2486@cindex creating and deleting directories 2486@cindex creating and deleting directories
2487@cindex copying directories
2487@c Emacs 19 features 2488@c Emacs 19 features
2488 2489
2489 Most Emacs Lisp file-manipulation functions get errors when used on 2490 Most Emacs Lisp file-manipulation functions get errors when used on
@@ -2501,6 +2502,23 @@ if they don't already exist.
2501@code{mkdir} is an alias for this. 2502@code{mkdir} is an alias for this.
2502@end deffn 2503@end deffn
2503 2504
2505@deffn Command copy-directory dirname newname &optional keep-time parents
2506This command copies the directory named @var{dirname} to
2507@var{newname}. If @var{newname} names an existing directory,
2508@var{dirname} will be copied to a subdirectory there.
2509
2510It always sets the file modes of the copied files to match the
2511corresponding original file.
2512
2513The third arg @var{keep-time} non-@code{nil} means to preserve the
2514modification time of the copied files. A prefix arg makes
2515@var{keep-time} non-@code{nil}.
2516
2517Noninteractively, the last argument @var{parents} says whether to
2518create parent directories if they don't exist. Interactively,
2519this happens by default.
2520@end deffn
2521
2504@deffn Command delete-directory dirname &optional recursive 2522@deffn Command delete-directory dirname &optional recursive
2505This command deletes the directory named @var{dirname}. The function 2523This command deletes the directory named @var{dirname}. The function
2506@code{delete-file} does not work for files that are directories; you 2524@code{delete-file} does not work for files that are directories; you