changeset 99415:01d460e83302

(org-publish-attachment): Use copy-file rather than eshell/cp.
author Glenn Morris <rgm@gnu.org>
date Thu, 06 Nov 2008 04:39:21 +0000
parents 0358d2269189
children 10117a174941
files lisp/org/org-publish.el
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/org/org-publish.el	Thu Nov 06 04:26:22 2008 +0000
+++ b/lisp/org/org-publish.el	Thu Nov 06 04:39:21 2008 +0000
@@ -526,14 +526,12 @@
 See `org-publish-org-to' to the list of arguments."
   (org-publish-org-to "html" plist filename pub-dir))
 
-(autoload 'eshell/cp "em-unix")		; why the eshell version?
-
 (defun org-publish-attachment (plist filename pub-dir)
   "Publish a file with no transformation of any kind.
 See `org-publish-org-to' to the list of arguments."
   (unless (file-directory-p pub-dir)
     (make-directory pub-dir t))
-  (eshell/cp filename pub-dir))
+  (copy-file filename pub-dir))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; Publishing files, sets of files, and indices