emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] publish regression: body-only (with patch)


From: Carsten Dominik
Subject: Re: [Orgmode] publish regression: body-only (with patch)
Date: Sun, 24 May 2009 23:59:56 +0200

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.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]