From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard KLINDA Subject: publish regression: body-only (with patch) Date: Sun, 24 May 2009 18:50:18 +0200 Message-ID: <8763fq1m45.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8Gwt-00022R-Au for emacs-orgmode@gnu.org; Sun, 24 May 2009 12:53:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8Gwo-0001xi-R9 for emacs-orgmode@gnu.org; Sun, 24 May 2009 12:53:23 -0400 Received: from [199.232.76.173] (port=59137 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8Gwo-0001xf-NU for emacs-orgmode@gnu.org; Sun, 24 May 2009 12:53:18 -0400 Received: from mx20.gnu.org ([199.232.41.8]:54971) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8Gwo-0000ck-6k for emacs-orgmode@gnu.org; Sun, 24 May 2009 12:53:18 -0400 Received: from viefep17-int.chello.at ([62.179.121.37]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8Gwc-0006Ef-KS for emacs-orgmode@gnu.org; Sun, 24 May 2009 12:53:07 -0400 Received: from edge05.upc.biz ([192.168.13.212]) by viefep17-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090524165254.LZMM16461.viefep17-int.chello.at@edge05.upc.biz> for ; Sun, 24 May 2009 18:52:54 +0200 Received: from ignotus by localhost with local (masqmail 0.2.21) id 1M8Gtu-59F-00 for ; Sun, 24 May 2009 18:50:18 +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: emacs-orgmode@gnu.org --=-=-= Hello, somehow the publish with body-only feature disappeared, or I just can't find a way to use it. Here is my usecase: ,---- | (setq org-publish-project-alist | (list | '("foo" . (:base-directory "..." | :base-extension any | :publishing-directory "/tmp/" | :with-section-numbers nil | :body-only t <<<<< | :table-of-contents nil | )))) `---- Only the bodies of the HTML files should be written to disk. Carsten, please consider adding this, thank you, Richard. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=body-only.patch diff --git a/lisp/org-html.el b/lisp/org-html.el index 16cf937..9224d6f 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -498,7 +498,8 @@ PUB-DIR is set, use this as the publishing directory." (org-combine-plists (org-default-export-plist) ext-plist (org-infile-export-plist)))) + (body-only (or body-only (plist-get opt-plist :body-only))) (style (concat (if (plist-get opt-plist :style-include-default) org-export-html-style-default) (plist-get opt-plist :style) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--