From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Elston Subject: Re: Re: Announcing my Python module to read org-mode files Date: Mon, 16 Mar 2009 18:40:46 -0700 Message-ID: <49BEFF9E.5050408@advantest-ard.com> References: <49BC77EF.9060102@optusnet.com.au> <49BE9A68.5020604@advantest-ard.com> Reply-To: m.elston@advantest-ard.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjOJK-0002hy-3D for emacs-orgmode@gnu.org; Mon, 16 Mar 2009 21:41:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjOJE-0002go-Kz for emacs-orgmode@gnu.org; Mon, 16 Mar 2009 21:41:40 -0400 Received: from [199.232.76.173] (port=46386 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjOJE-0002gi-IL for emacs-orgmode@gnu.org; Mon, 16 Mar 2009 21:41:36 -0400 Received: from [192.84.20.196] (port=3807 helo=mailhub.ardeng.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LjOJD-0006Io-UU for emacs-orgmode@gnu.org; Mon, 16 Mar 2009 21:41:36 -0400 In-Reply-To: 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 Cc: emacs-orgmode@gnu.org * Charles Cave wrote (on 3/16/2009 6:22 PM): > Mark Elston advantest-ard.com> writes: > >> The only thing better would be a way to use this package to >> update the nodes and then write them back out. Hmmmmm...... > > The changes to the package to write the node output out are... > > 1. A means of storing the org-mode preamble .. all the lines before > the first headline. Maybe this could be in a node with level 0 > and headline of null. The bodytext of this object could be > the preamble lines. > > 2. A method to output a node in ord-mode format echoing the > ** prefix, TODO tag, headline, tags, properties and body text. > > 3. The module currently discards lines beginning with #. > These should now be preserved. > > I wouldnt imagine this being a great deal of work. > I will add this to my (very long list) of things to do! > Actually, for my purposes, I think the problem is simpler. As these files are automatically generated (and, eventually, updated) the preamble is 'pre-defined' for each file. It could be written out new each time the file is updated. So #1 and #3 are non-issues as far as I am concerned. #2 is, of course, the primary issue. I will probably need to deal with properties as I get more involved in 'tweaking' my generators so I am thrilled to see you already support them. Mark