From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard KLINDA Subject: Patch: new org-publish-project-alist property: :body-only Date: Thu, 12 Feb 2009 16:31:05 +0100 Message-ID: <87ab8raczq.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 1LXdZM-0006Nt-Ff for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 10:33:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXdZK-0006KD-OS for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 10:33:39 -0500 Received: from [199.232.76.173] (port=57359 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXdZK-0006Jh-GB for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 10:33:38 -0500 Received: from viefep12-int.chello.at ([62.179.121.32]:10651) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXdZJ-0002Tv-Ln for emacs-orgmode@gnu.org; Thu, 12 Feb 2009 10:33:38 -0500 Received: from edge02.upc.biz ([192.168.13.237]) by viefep12-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20090212153334.SHUL28197.viefep12-int.chello.at@edge02.upc.biz> for ; Thu, 12 Feb 2009 16:33:34 +0100 Received: from ignotus by localhost with local (masqmail 0.2.21) id 1LXdWr-3D7-00 for ; Thu, 12 Feb 2009 16:31:05 +0100 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 --=-=-= I defined a new org-publish-project-alist property: :body-only, the functionality was already in Org. ,----[ example ] | '("test" . (:base-directory "/tmp/" | :base-extension "org" | :publishing-directory "/tmp/1/" | :body-only t ;; <---- | )) `---- Excerpt from the patch: ,---- | When :body-only is set to t, don't produce the file header and footer, | simply publish the content of ..., without even the body | tags themselves. `---- Carsten, please include this if you think it's ok. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=body-only.patch --- org-publish.el 2009-02-10 20:23:13.000000000 +0100 +++ /home/ignotus/.elisp/org/lisp/org-publish.el 2009-02-12 16:24:20.000000000 +0100 @@ -222,6 +222,10 @@ :completion-function Function to be called after publishing this project. +When :body-only is set to t, don't produce the file header and footer, +simply publish the content of ..., without even the body +tags themselves. + Some properties control details of the Org publishing process, and are equivalent to the corresponding user variables listed in the right column. See the documentation for those variables to @@ -501,7 +507,8 @@ (setq export-buf-or-file (funcall (intern (concat "org-export-as-" format)) (plist-get plist :headline-levels) - nil plist nil nil pub-dir)) + nil plist nil (plist-get plist :body-only) + pub-dir)) (when (and (bufferp export-buf-or-file) (buffer-live-p export-buf-or-file)) (set-buffer export-buf-or-file) --=-=-= -- Udv, Richard --=-=-= 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 --=-=-=--