From mboxrd@z Thu Jan 1 00:00:00 1970 From: David O'Toole Subject: org-blog.el updated to v1.17 Date: Wed, 30 May 2007 09:17:43 -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 1HtOPj-0002eT-7Y for emacs-orgmode@gnu.org; Wed, 30 May 2007 09:40:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HtOPh-0002eH-N6 for emacs-orgmode@gnu.org; Wed, 30 May 2007 09:40:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HtOPh-0002eE-Ew for emacs-orgmode@gnu.org; Wed, 30 May 2007 09:40:33 -0400 Received: from an-out-0708.google.com ([209.85.132.250]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HtOPg-0006DY-Kd for emacs-orgmode@gnu.org; Wed, 30 May 2007 09:40:33 -0400 Received: by an-out-0708.google.com with SMTP id c25so636055ana for ; Wed, 30 May 2007 06:40:26 -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, Eduardo Ochs Available from http://dto.freeshell.org/e/org-blog.el This is the first usable release of org-blog. Instructions for setup and use are in the file's commentary. It requires org-mode at least 4.75 (very recent, see quoted posts below.) You can see an example of the output at http://dto.freeshell.org/blog/ and the generated XML at http://dto.freeshell.org/blog/blog.xml Features: - write blog posts in org-mode syntax - juggle multiple posts while writing, publish in any order when finished - RSS 2.0 file. Now you can be on planet.emacsen.org! - "blogroll" (not well-tested) Carsten Dominik writes: > On May 19, 2007, at 3:17, David O'Toole wrote: > >> >> I am working on my blog extension for org-publish. I would like to >> convert a region of text (say, between two markers) from org-mode >> markup into html and then paste the resulting html into another buffer >> where I am building a full page. I need to do this from a lisp >> program. It says that org-export-as-html will export an active region >> but I tried it and it doesn't work in a temp-buffer where >> (buffer-file-name) is nil. Anyway, would it be hard to expose a >> function like the following? >> >> (defun org-export-region-to-html (beg end) >> "Convert region between BEG and END into HTML, placing the result >> into a new buffer. The new buffer is returned." > > > 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/