emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Hugo Schmitt" <hugows@gmail.com>
To: Daniel Clemente <n142857@gmail.com>
Cc: emacs-orgmode@gnu.org, Dimitris Kapetanakis <katepano@gmail.com>
Subject: Re: export to txt files
Date: Mon, 17 Mar 2008 16:50:28 -0300	[thread overview]
Message-ID: <2f1c7d020803171250odffe2a4y988128bcddd56ba8@mail.gmail.com> (raw)
In-Reply-To: <87zlsxuof0.wl%n142857@gmail.com>

Hm, I guess I sent this only to Dimitri... I'm resending it to the list..

This seems to do what you want.

(defun org-export-top-levels ()
 (interactive)
 (goto-char (point-min))
 (let (start (point))
       (while (re-search-forward "^* " nil t)
         (write-region start (point-at-bol) (concat (org-get-heading) ".txt"))
         (setq start (point-at-bol)))))

Regards,
Hugo

On Mon, Mar 17, 2008 at 4:43 PM, Daniel Clemente <n142857@gmail.com> wrote:
>
>   Mmmm... I wrote a program which can do this:
>   http://www.danielclemente.com/dislines/index.en.html
>
>   however it's not LISP.
>   I have written multilingual org files this way, but it's not comfortable since it requires several programs and processing phases. I am still looking for a solution in Emacs LISP, and if possible, one which integrates nicely with org-mode :-)
>
>
>
>
>
>  _______________________________________________
>  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
>

  reply	other threads:[~2008-03-17 19:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-17 15:56 export to txt files Dimitris Kapetanakis
2008-03-17 16:23 ` Sebastian
2008-03-17 17:40 ` Phil Jackson
2008-03-17 19:43   ` Daniel Clemente
2008-03-17 19:50     ` Hugo Schmitt [this message]
2008-03-18  5:02       ` Dimitris Kapetanakis
2008-03-18  7:28         ` Dimitris Kapetanakis

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=2f1c7d020803171250odffe2a4y988128bcddd56ba8@mail.gmail.com \
    --to=hugows@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=katepano@gmail.com \
    --cc=n142857@gmail.com \
    /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).