From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: publish regression: body-only (with patch) Date: Sun, 24 May 2009 23:59:56 +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 1M8Ljk-0000CK-EZ for emacs-orgmode@gnu.org; Sun, 24 May 2009 18:00:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8Ljg-0000C8-2U for emacs-orgmode@gnu.org; Sun, 24 May 2009 18:00:08 -0400 Received: from [199.232.76.173] (port=51180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8Ljf-0000C5-TB for emacs-orgmode@gnu.org; Sun, 24 May 2009 18:00:03 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:59905) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8Ljf-00034I-Du for emacs-orgmode@gnu.org; Sun, 24 May 2009 18:00:03 -0400 Received: by ewy6 with SMTP id 6so2979029ewy.42 for ; Sun, 24 May 2009 15:00:01 -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 Hi Richard, this feature has never existed as something usable from publishing. Can you provide a realistic case when something like this would be useful? - 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