mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(org-publish-attachment): Use copy-file rather than eshell/cp.
This commit is contained in:
parent
3876cf5de7
commit
49ace7fb90
2 changed files with 3 additions and 4 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue