"Pete Bataleck" <batal...@gmail.com> writes: > I'm trying to update an orgmode document programatically. > > I can create an AST from a buffer using org-element-parse-buffer, but > how do I do the reverse and output the modified AST to a buffer?
I think `org-element-interpret-data' is the function you're looking for. Take a look at the source in org-element.el -- that ought to do it.