[Orgmode] Re: Announcing my Python module to read org-mode files

2009-03-16 Thread Charles Cave
Mark Elston m.elston at 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.  Hm..

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!







___
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


Re: [Orgmode] Re: Announcing my Python module to read org-mode files

2009-03-16 Thread Mark Elston



* Charles Cave wrote (on 3/16/2009 6:22 PM):

Mark Elston m.elston at 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.  Hm..


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


___
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