aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-08-15 00:34:46 +0530
committerArun Isaac2022-08-15 16:38:44 +0530
commit4f3636c18512a4e46c30136b2f0919a973e38067 (patch)
treede9a2d5b5c961e85f2ef04ce9f46d0c6fa47a57a
parent51a4542ae32fbf569d47ae279b42cd5e3e833da2 (diff)
downloadennum-4f3636c18512a4e46c30136b2f0919a973e38067.tar.gz
ennum-4f3636c18512a4e46c30136b2f0919a973e38067.tar.lz
ennum-4f3636c18512a4e46c30136b2f0919a973e38067.zip
Expand ennum-copy docstring.
* ennum.el (ennum-copy): Expand docstring.
-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)