From ed08ccb470717893447bb78335a513e0e546690f Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 6 Nov 2008 04:16:28 +0000 Subject: [PATCH] (eshell/cp): Autoload it rather than requiring things. --- lisp/org/ChangeLog | 4 ++++ lisp/org/org-publish.el | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lisp/org/ChangeLog b/lisp/org/ChangeLog index 82de83a0fe5..3422ad55ea0 100644 --- a/lisp/org/ChangeLog +++ b/lisp/org/ChangeLog @@ -1,3 +1,7 @@ +2008-11-06 Glenn Morris + + * org-publish.el (eshell/cp): Autoload it rather than requiring things. + 2008-11-04 Juanma Barranquero * org.el (org-columns-modify-value-for-display-function): diff --git a/lisp/org/org-publish.el b/lisp/org/org-publish.el index 2af71d3c0b2..ba55cdda9d9 100644 --- a/lisp/org/org-publish.el +++ b/lisp/org/org-publish.el @@ -526,14 +526,11 @@ 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." - ;; make sure eshell/cp code is loaded - (eval-and-compile - (require 'eshell) - (require 'esh-maint) - (require 'em-unix)) (unless (file-directory-p pub-dir) (make-directory pub-dir t)) (eshell/cp filename pub-dir)) -- 2.39.2