Mercurial > emacs
diff lisp/textmodes/org-publish.el @ 91073:4bc33ffdda1a
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 902-908)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 131-137)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 261-262)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-278
author | Miles Bader <miles@gnu.org> |
---|---|
date | Sat, 27 Oct 2007 09:12:07 +0000 |
parents | d38543a1c0f9 ae9da278f53b |
children | 880960b70474 |
line wrap: on
line diff
--- a/lisp/textmodes/org-publish.el Sat Oct 27 00:30:50 2007 +0000 +++ b/lisp/textmodes/org-publish.el Sat Oct 27 09:12:07 2007 +0000 @@ -4,7 +4,7 @@ ;; Author: David O'Toole <dto@gnu.org> ;; Keywords: hypermedia, outlines -;; Version: 1.80 +;; Version: 1.80a ;; This file is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -426,7 +426,7 @@ (defun org-publish-get-plist-from-filename (filename) "Return publishing configuration plist for file FILENAME." (let ((found nil)) - (mapc + (mapcar (lambda (plist) (let ((files (org-publish-get-base-files plist))) (if (member (expand-file-name filename) files) @@ -438,20 +438,6 @@ ;;;; Pluggable publishing back-end functions - -(defun org-publish-org-to-html (plist filename) - "Publish an org file to HTML. -PLIST is the property list for the given project. -FILENAME is the filename of the org file to be published." - (require 'org) - (let* ((arg (plist-get plist :headline-levels))) - (progn - (find-file filename) - (org-export-as-html arg nil plist) - ;; get rid of HTML buffer - (kill-buffer (current-buffer))))) - - (defun org-publish-org-to-latex (plist filename) "Publish an org file to LaTeX." (org-publish-org-to "latex" plist filename)) @@ -478,9 +464,10 @@ PLIST is the property list for the given project. FILENAME is the filename of the file to be published." ;; make sure eshell/cp code is loaded - (require 'eshell) - (require 'esh-maint) - (require 'em-unix) + (eval-and-compile + (require 'eshell) + (require 'esh-maint) + (require 'em-unix)) (let ((destination (file-name-as-directory (plist-get plist :publishing-directory)))) (eshell/cp filename destination)))