emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* outputting a modified parsetree
@ 2014-09-29 13:16 Pete Bataleck
  2014-09-29 16:28 ` Eric Abrahamsen
  0 siblings, 1 reply; 2+ messages in thread
From: Pete Bataleck @ 2014-09-29 13:16 UTC (permalink / raw)
  To: emacs-orgmode


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?



 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: outputting a modified parsetree
  2014-09-29 13:16 outputting a modified parsetree Pete Bataleck
@ 2014-09-29 16:28 ` Eric Abrahamsen
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Abrahamsen @ 2014-09-29 16:28 UTC (permalink / raw)
  To: emacs-orgmode

"Pete Bataleck" <bataleck@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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-29 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-29 13:16 outputting a modified parsetree Pete Bataleck
2014-09-29 16:28 ` Eric Abrahamsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).