Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: Hello, >> Yes, there are other elements and more affiliated keywords. The >> parser (or rather the interpreter(s)) and parts of Org Babel do not >> always deal with them yet. >> >> This was more a 'constructive bug report', not so much an attempt of a >> general fix. I just (partly) fixed this function for myself because I >> needed it ... > > There is no bug here. > > `org-element-src-block-interpreter' is meant to create a src block and > only a src block. `org-element--interpret-affiliated-keyword' is used to > create affiliated keywords (like "#+header"). You shouldn't call any of > these anyway, since `org-element-interpret-data' is the one and only > entry point to interpret parsed data. Try > > > (org-element-interpret-data ptree)
I see, thanks. I'm still getting used to the 'org-element API', but it seems to be much easier than I thought: just use `org-element-at-point' and `org-element-interpret-data' in most cases ... -- cheers, Thorsten