Re: [O] question on org-element-interpret-data and when it works

2018-03-03 Thread Thorsten Jolitz
Nicolas Goaziou writes: > Thorsten Jolitz writes: > >> You used the word 'discrepancy', > > True. I inferred it from > > (funny enough, some org elements have 'value' as their content, others > 'content'). > > which, IMO, sounds like it is a

Re: [O] question on org-element-interpret-data and when it works

2018-03-03 Thread Nicolas Goaziou
Thorsten Jolitz writes: > You used the word 'discrepancy', True. I inferred it from (funny enough, some org elements have 'value' as their content, others 'content'). which, IMO, sounds like it is a surprising fact. > I simply needed to know for each org > element what

Re: [O] question on org-element-interpret-data and when it works

2018-03-03 Thread Thorsten Jolitz
Nicolas Goaziou writes: > Thorsten Jolitz writes: > >> I have defined these two constants in org-dp.el to work around this >> discrepancy (and to know which elements do not have interpreted content >> at all): >> >> , >> | (defconst

Re: [O] question on org-element-interpret-data and when it works

2018-03-03 Thread Nicolas Goaziou
Thorsten Jolitz writes: > I have defined these two constants in org-dp.el to work around this > discrepancy (and to know which elements do not have interpreted content > at all): > > , > | (defconst org-dp-no-content-elems > | (list 'babel-call 'clock 'comment

Re: [O] question on org-element-interpret-data and when it works

2018-03-03 Thread Thorsten Jolitz
Nicolas Goaziou writes: Hello, > Thorsten Jolitz writes: > >> (funny enough, some org elements have 'value' as their content, others >> 'content'). > > Could you point out where there is such discrepancy in "org-element.el"? I have defined these two

Re: [O] question on org-element-interpret-data and when it works

2018-03-03 Thread Nicolas Goaziou
Hello, Thorsten Jolitz writes: > (funny enough, some org elements have 'value' as their content, others > 'content'). Could you point out where there is such discrepancy in "org-element.el"? Thank you. Regards, -- Nicolas Goaziou

Re: [O] question on org-element-interpret-data and when it works

2018-03-03 Thread Thorsten Jolitz
John Kitchin writes: Hello John, > I am trying to find some ways to programatically modify org-elements > that use fewer regexps and motion commands. It seems like org-dp > (https://github.com/tj64/org-dp) was intended to do that thats right, that's it's exact use case

Re: [O] question on org-element-interpret-data and when it works

2018-02-26 Thread Nicolas Goaziou
Hello, John Kitchin writes: > I am trying to find some ways to programatically modify org-elements that > use fewer regexps and motion commands. It seems like org-dp ( > https://github.com/tj64/org-dp) was intended to do that but it is not clear > enough how you might

[O] question on org-element-interpret-data and when it works

2018-02-25 Thread John Kitchin
I am trying to find some ways to programatically modify org-elements that use fewer regexps and motion commands. It seems like org-dp ( https://github.com/tj64/org-dp) was intended to do that but it is not clear enough how you might use it, and it also doesn't seem to support plain-lists yet.