diff options
author | Glenn Morris <rgm@gnu.org> | 2008-11-06 04:16:28 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-11-06 04:16:28 +0000 |
commit | ed08ccb470717893447bb78335a513e0e546690f (patch) | |
tree | 2cc6200fb5059a6c6534b40019078c3ae5db8e06 /lisp/org/org-publish.el | |
parent | c108d549d4145e5c8294fde34ba9fa22654b7167 (diff) | |
download | emacs-ed08ccb470717893447bb78335a513e0e546690f.tar.gz emacs-ed08ccb470717893447bb78335a513e0e546690f.tar.bz2 emacs-ed08ccb470717893447bb78335a513e0e546690f.zip |
(eshell/cp): Autoload it rather than requiring things.
Diffstat (limited to 'lisp/org/org-publish.el')
-rw-r--r-- | lisp/org/org-publish.el | 7 |
1 files changed, 2 insertions, 5 deletions
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)) |