From mboxrd@z Thu Jan 1 00:00:00 1970 From: David O'Toole Subject: Re: convert region to html? Date: Mon, 21 May 2007 11:00:51 -0400 Message-ID: References: <3a37385302cd5f00878dcc7ed7ac263d@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hq9NY-0003q7-Oy for emacs-orgmode@gnu.org; Mon, 21 May 2007 11:00:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hq9NW-0003o9-TA for emacs-orgmode@gnu.org; Mon, 21 May 2007 11:00:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hq9NW-0003o5-IT for emacs-orgmode@gnu.org; Mon, 21 May 2007 11:00:54 -0400 Received: from an-out-0708.google.com ([209.85.132.244]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hq9NW-0004Nd-2p for emacs-orgmode@gnu.org; Mon, 21 May 2007 11:00:54 -0400 Received: by an-out-0708.google.com with SMTP id c17so483012anc for ; Mon, 21 May 2007 08:00:53 -0700 (PDT) In-Reply-To: <3a37385302cd5f00878dcc7ed7ac263d@science.uva.nl> (Carsten Dominik's message of "Sun\, 20 May 2007 17\:17\:52 +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: Carsten Dominik Cc: emacs-orgmode@gnu.org super! thanks for this Carsten, i will test it when it is released and see if i can get my org-blog.el working properly. I have had the urge to blog a lot lately but haven't had an outlet :-) > Thanks for this idea, will be useful for many things. > > - Carsten > > 4.75 will contain the following function: > > (defun org-export-region-as-html (beg end &optional body-only buffer) > "Convert region fron BEG to END in org-mode buffer to HTML. > If prefix arg BODY-ONLY is set, omit file header, footer, and table of > contents, and only produce the region of converted text, useful for > cut-and-paste operations. > If BUFFER is a buffer or a string, use/create that buffer as a target > of the converted HTML. If BUFFER is the symbol `string', return the > produced HTML as a string and leave no buffer behind. For example, > a Lisp program could call this function in the following way: > > (setq html (org-export-region-as-html beg end t 'string)) > > When called interactively, the output buffer is selected, and shown > in a window. A non-interactive call will only retunr the buffer." > > > > -- David O'Toole dto@gnu.org http://dto.freeshell.org/notebook/