diff options
author | Sebastian Rose <sebastian_rose@gmx.de> | 2010-06-10 02:33:28 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-16 02:17:05 -0400 |
commit | 2700ec42c75e28f047d675c022c280c1ac912ef9 (patch) | |
tree | ade20cd53b1461954ce07e1d7d0d80e467b9a82f | |
parent | d18653505d02028a9fc35f82c56845261c10cee5 (diff) | |
download | org-mode-2700ec42c75e28f047d675c022c280c1ac912ef9.tar.gz |
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)'
-rw-r--r-- | lisp/org-publish.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/org-publish.el b/lisp/org-publish.el index fc18a9a..3f24863 100644 --- a/lisp/org-publish.el +++ b/lisp/org-publish.el @@ -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) |