From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: [Patch] possible Bug: non-interactive publishing (emacs 22.1) Date: Wed, 09 Jun 2010 23:33:28 +0200 Message-ID: <878w6nsxg7.fsf_-_@gmx.de> References: <20100609152120.2ab7l1te884sw8ww@webmail.dds.nl> <87fx0vsxxx.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=47203 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMStz-00063d-9I for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 17:33:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMSty-0006Xq-7n for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 17:33:35 -0400 Received: from mail.gmx.net ([213.165.64.20]:39935) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OMStx-0006Xk-Q1 for emacs-orgmode@gnu.org; Wed, 09 Jun 2010 17:33:34 -0400 In-Reply-To: <87fx0vsxxx.fsf@gmx.de> (Sebastian Rose's message of "Wed, 09 Jun 2010 23:22:50 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "orgmode@h-rd.org" Cc: emacs-orgmode@gnu.org --=-=-= 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)' --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org-publish-batch-mode.patch 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) --=-=-= Regards Sebastian --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--