From: Sebastian Rose <sebastian_rose@gmx.de>
To: "orgmode@h-rd.org" <orgmode@h-rd.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [Patch] possible Bug: non-interactive publishing (emacs 22.1)
Date: Wed, 09 Jun 2010 23:33:28 +0200 [thread overview]
Message-ID: <878w6nsxg7.fsf_-_@gmx.de> (raw)
In-Reply-To: <87fx0vsxxx.fsf@gmx.de> (Sebastian Rose's message of "Wed, 09 Jun 2010 23:22:50 +0200")
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
Sorry for the reply to my own mail.
But as Carsten is on vacation, I thought it might make sense to add the
`[Patch]' to the subject.
This patch fixes batch-mode publishing. Tested in emacs24 like this:
sh$ emacs -q -batch --eval='(org-publish "PROJECT_NAME" t)'
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-publish-batch-mode.patch --]
[-- Type: text/x-diff, Size: 668 bytes --]
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)
[-- Attachment #3: Type: text/plain, Size: 25 bytes --]
Regards
Sebastian
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-06-09 21:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 13:21 possible Bug: non-interactive publishing (emacs 22.1) orgmode
2010-06-09 21:22 ` Sebastian Rose
2010-06-09 21:33 ` Sebastian Rose [this message]
2010-06-10 9:51 ` [Solved] [Patch] " orgmode
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878w6nsxg7.fsf_-_@gmx.de \
--to=sebastian_rose@gmx.de \
--cc=emacs-orgmode@gnu.org \
--cc=orgmode@h-rd.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).