From: Glenn Morris Date: Thu, 6 Nov 2008 04:16:28 +0000 (+0000) Subject: (eshell/cp): Autoload it rather than requiring things. X-Git-Tag: emacs-pretest-23.0.90~1946 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ed08ccb470717893447bb78335a513e0e546690f;p=emacs.git (eshell/cp): Autoload it rather than requiring things. --- 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))