Re: [O] Usage of org-element api

2015-01-17 Thread Dieter Van Eessen
Hello, Nicolas pointed me in the right direction! It was so obvious that I looked right passed it: Should just create a temp buffer with the text (headline+plainlist+text) i wish to parse, then parse that temp-buffer... so obvious, sorry for the waste of time. Just to give an idea of what I'm try

Re: [O] Usage of org-element api

2015-01-16 Thread Rasmus
Hi Dieter, Dieter Van Eessen writes: > Hello Rasmus, > > Thank you for the fast reply, the link you've given on interpreting is very > useful ! Also didn't know there existed such thing as the org-dp library to > manipulate org-elements, I'll sure check it out. I don't know org-dp myself, but T

Re: [O] Usage of org-element api

2015-01-16 Thread Nicolas Goaziou
Hello, Dieter Van Eessen writes: > The reason I've tried this (and the internal org-element--parse-elements) > is because I'd prefer not having to parse the whole buffer and still get > the contents. The local parsing functions (org-element-at-point) and > (org-element-context) don't contain con

Re: [O] Usage of org-element api

2015-01-16 Thread Dieter Van Eessen
Hello Rasmus, Thank you for the fast reply, the link you've given on interpreting is very useful ! Also didn't know there existed such thing as the org-dp library to manipulate org-elements, I'll sure check it out. More about question number 3: >> 3) How can the output of (org-element-parse-secon

Re: [O] Usage of org-element api

2015-01-16 Thread Rasmus
Hi Dieter, Nicolas will probably reply at some point and he has much greater (∞ more) insight in this topics. None the less, I hope the below message will help a bit. Dieter Van Eessen writes: > 1) How to use org-element-content? Returns nil when used on elements parsed > by org-element--parse

[O] Usage of org-element api

2015-01-16 Thread Dieter Van Eessen
Hello, New to the list. Got some questions regarding the use of the org-element api. I've already learned alot by reading the emacs help and org-developers section. and the online org-element-docstrings have been very helpful. I'm not a highly skilled lisp-programmer, but got good grip on the basi