]> git.eshelyaron.com Git - emacs.git/commitdiff
(org-publish-attachment): Use copy-file rather than eshell/cp.
authorGlenn Morris <rgm@gnu.org>
Thu, 6 Nov 2008 04:39:33 +0000 (04:39 +0000)
committerGlenn Morris <rgm@gnu.org>
Thu, 6 Nov 2008 04:39:33 +0000 (04:39 +0000)
lisp/org/ChangeLog
lisp/org/org-publish.el

index 3422ad55ea0808f7ec6e26e712bfcfd8c7c33a75..113670c20de5475b5985d4443cbb61acb4826579 100644 (file)
@@ -1,6 +1,7 @@
 2008-11-06  Glenn Morris  <rgm@gnu.org>
 
-       * 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  <lekktu@gmail.com>
 
index 2bf0d4283a8e9681c1ae09d7752779d3fae0f0f0..41d72878969ee1f306c251df3c77b7e5ab125215 100644 (file)
@@ -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