summaryrefslogtreecommitdiff
path: root/ennum.el
diff options
context:
space:
mode:
Diffstat (limited to 'ennum.el')
-rw-r--r--ennum.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/ennum.el b/ennum.el
index 5f19ed4..a94c246 100644
--- a/ennum.el
+++ b/ennum.el
@@ -586,8 +586,15 @@ result as a string."
(make-directory directory t))
(defun ennum-copy (source destination &optional quiet)
- "Copy file or directory from SOURCE to DESTINATION. Overwrite
-if DESTINATION already exists."
+ "Copy file or directory from SOURCE to DESTINATION.
+
+Overwrite if DESTINATION already exists. Create any parent
+directories required.
+
+If SOURCE is a file and DESTINATION is a directory, copy SOURCE
+to a like-named file under DESTINATION. For DESTINATION to be
+recognized as a directory, it should end in a slash. See
+`file-name-as-directory'."
(unless quiet
(message "Copying %s to %s" source destination))
(if (file-directory-p source)