1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-26 07:33:39 +00:00

possible Bug: non-interactive publishing (emacs 22.1)

This patch fixes batch-mode publishing. Tested in emacs24 like this:

   sh$   emacs -q -batch --eval='(org-publish "PROJECT_NAME" t)'
This commit is contained in:
Sebastian Rose 2010-06-10 02:33:28 +00:00 committed by John Wiegley
parent d18653505d
commit 2700ec42c7

View File

@ -756,7 +756,12 @@ Default for SITEMAP-FILENAME is 'sitemap.org'."
(save-window-excursion
(let* ((org-publish-use-timestamps-flag
(if force nil org-publish-use-timestamps-flag)))
(org-publish-projects (list project)))))
(org-publish-projects
(if (stringp project)
;; If this function is called in batch mode,
;; project is still a string here.
(list (assoc project org-publish-project-alist))
(list project))))))
;;;###autoload
(defun org-publish-all (&optional force)