# HG changeset patch # User Glenn Morris # Date 1225946361 0 # Node ID 01d460e833029209b390ea158b1e0be1922be815 # Parent 0358d22691898f09a2652fb3c0f0e9c8787f14a8 (org-publish-attachment): Use copy-file rather than eshell/cp. diff -r 0358d2269189 -r 01d460e83302 lisp/org/org-publish.el --- 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