From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Hugo Schmitt" Subject: Re: export to txt files Date: Mon, 17 Mar 2008 16:50:28 -0300 Message-ID: <2f1c7d020803171250odffe2a4y988128bcddd56ba8@mail.gmail.com> References: <2a6300ea0803170856r34c1a143v597459b03f6a2752@mail.gmail.com> <87eja96ygx.fsf@shellarchive.co.uk> <87zlsxuof0.wl%n142857@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JbLLt-00007n-K6 for emacs-orgmode@gnu.org; Mon, 17 Mar 2008 15:50:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JbLLs-00007b-91 for emacs-orgmode@gnu.org; Mon, 17 Mar 2008 15:50:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbLLs-00007Y-3Q for emacs-orgmode@gnu.org; Mon, 17 Mar 2008 15:50:32 -0400 Received: from qb-out-0506.google.com ([72.14.204.237]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JbLLr-0007lK-OV for emacs-orgmode@gnu.org; Mon, 17 Mar 2008 15:50:31 -0400 Received: by qb-out-0506.google.com with SMTP id e6so4736909qbe.2 for ; Mon, 17 Mar 2008 12:50:30 -0700 (PDT) In-Reply-To: <87zlsxuof0.wl%n142857@gmail.com> Content-Disposition: inline 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: Daniel Clemente Cc: emacs-orgmode@gnu.org, Dimitris Kapetanakis 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 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 >