Re: [O] Programmatically handling org files

2016-09-12 Thread Nick Dokos
Thorsten Jolitz writes: > ... > > If you feel you don't need the whole parse tree, but rather want to act > locally on the Org element at point, you might want to look at > org-dp.el > ... Just a note for the benefit of newcomers to the list: Thorsten's org-dp.el (and many

Re: [O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
On Mon, Sep 12 2016, John Kitchin wrote: >> I was wondering if there is some sort of (semi)official API for handling >> org files programmatically. That's to say, is there a documented way for >> non-org Emacs packages to manipulate (the contents of) org files? > > None that I know of. A

Re: [O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
On Mon, Sep 12 2016, John Kitchin wrote: > indeed! Maybe I misunderstood the OP. > > You can find more on the API here: > > http://orgmode.org/worg/dev/org-element-api.html > > There are also a bunch of functions to do other things, e.g. > > (org-todo) (org-cut-subtree) (org-entry-put) and many

Re: [O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
On Mon, Sep 12 2016, Thorsten Jolitz wrote: > by "non-org Emacs packages" you mean Emacs packages written in Elisp, > but not part of Org-mode? Yes, exactly. My wording wasn't entirely clear, I admit. > The org-mode parser converts an Org document into a nested list and > provides many

Re: [O] Programmatically handling org files

2016-09-12 Thread John Kitchin
indeed! Maybe I misunderstood the OP. You can find more on the API here: http://orgmode.org/worg/dev/org-element-api.html There are also a bunch of functions to do other things, e.g. (org-todo) (org-cut-subtree) (org-entry-put) and many others that let you change properties of headings, cut

Re: [O] Programmatically handling org files

2016-09-12 Thread Thorsten Jolitz
Joost Kremers writes: Hi, > I was wondering if there is some sort of (semi)official API for handling > org files programmatically. That's to say, is there a documented way for > non-org Emacs packages to manipulate (the contents of) org files? > > Specifically, I'm

Re: [O] Programmatically handling org files

2016-09-12 Thread John Kitchin
Joost Kremers writes: > Hi all, > > I was wondering if there is some sort of (semi)official API for handling > org files programmatically. That's to say, is there a documented way for > non-org Emacs packages to manipulate (the contents of) org files? None that I know of. A non-elisp lib would

[O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
Hi all, I was wondering if there is some sort of (semi)official API for handling org files programmatically. That's to say, is there a documented way for non-org Emacs packages to manipulate (the contents of) org files? Specifically, I'm wondering about creating and deleting entries (by entries