From: Glenn Morris Date: Thu, 6 Nov 2008 04:39:33 +0000 (+0000) Subject: (org-publish-attachment): Use copy-file rather than eshell/cp. X-Git-Tag: emacs-pretest-23.0.90~1944 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=49ace7fb9044799a8ed657295cc01b2e280db2b9;p=emacs.git (org-publish-attachment): Use copy-file rather than eshell/cp. --- diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 3422ad55ea0..113670c20de 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog @@ -1,6 +1,7 @@ 2008-11-06 Glenn Morris - * org-publish.el (eshell/cp): Autoload it rather than requiring things. + * org-publish.el (org-publish-attachment): Use copy-file rather than + eshell/cp. 2008-11-04 Juanma Barranquero diff --git a/lisp/org/org-publish.el b/lisp/org/org-publish.el index 2bf0d4283a8..41d72878969 100644 --- a/lisp/org/org-publish.el +++ b/lisp/org/org-publish.el @@ -526,14 +526,12 @@ See `org-publish-org-to' to the list of arguments." 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