emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David O'Toole <dto@gnu.org>
To: Carsten Dominik <dominik@science.uva.nl>
Cc: emacs-orgmode@gnu.org
Subject: Re: convert region to html?
Date: Mon, 21 May 2007 11:00:51 -0400	[thread overview]
Message-ID: <m3ps4unrvg.fsf@gnu.org> (raw)
In-Reply-To: <3a37385302cd5f00878dcc7ed7ac263d@science.uva.nl> (Carsten Dominik's message of "Sun\, 20 May 2007 17\:17\:52 +0200")


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/

  parent reply	other threads:[~2007-05-21 15:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-19  1:17 convert region to html? David O'Toole
2007-05-20  2:27 ` Michael Olson
2007-05-20 15:17 ` Carsten Dominik
2007-05-21  6:56   ` Giovanni Ridolfi
2007-05-21 15:00   ` David O'Toole [this message]
2007-05-30 13:17   ` org-blog.el updated to v1.17 David O'Toole
     [not found]     ` <465DB53B.3030209@calicojack.co.uk>
     [not found]       ` <m3myzlrwtu.fsf@gnu.org>
2007-05-31 15:34         ` org-blog.el v1.17 and org-publish-org-to-html Rick Moynihan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3ps4unrvg.fsf@gnu.org \
    --to=dto@gnu.org \
    --cc=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).