From 4f3636c18512a4e46c30136b2f0919a973e38067 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Mon, 15 Aug 2022 00:34:46 +0530 Subject: Expand ennum-copy docstring. * ennum.el (ennum-copy): Expand docstring. --- ennum.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ennum.el') 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) -- cgit v1.2.3