From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: publish regression: body-only (with patch) Date: Mon, 25 May 2009 16:02:10 +0200 Message-ID: References: <8763fq1m45.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8akv-0001yq-MJ for emacs-orgmode@gnu.org; Mon, 25 May 2009 10:02:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8akr-0001tj-1Y for emacs-orgmode@gnu.org; Mon, 25 May 2009 10:02:21 -0400 Received: from [199.232.76.173] (port=52137 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8akq-0001tW-Qp for emacs-orgmode@gnu.org; Mon, 25 May 2009 10:02:16 -0400 Received: from mail-fx0-f169.google.com ([209.85.220.169]:64881) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8akq-0002rh-8I for emacs-orgmode@gnu.org; Mon, 25 May 2009 10:02:16 -0400 Received: by fxm17 with SMTP id 17so3368050fxm.42 for ; Mon, 25 May 2009 07:02:15 -0700 (PDT) In-Reply-To: <8763fq1m45.fsf@gmail.com> 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: Richard KLINDA Cc: emacs-orgmode@gnu.org Applied, thanks. - Carsten On May 24, 2009, at 6:50 PM, Richard KLINDA wrote: > 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. > > 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) > _______________________________________________ > 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