emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@fastmail.fm>
To: John Kitchin <jkitchin@andrew.cmu.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Thorsten Jolitz <tjolitz@gmail.com>
Subject: Re: Programmatically handling org files
Date: Mon, 12 Sep 2016 23:37:15 +0200	[thread overview]
Message-ID: <87r38odcl0.fsf@fastmail.fm> (raw)
In-Reply-To: <CAJ51ETo7cCB_LWuNA8s7di==61Lua3dtsHT=m4KFtiiDjNoE1w@mail.gmail.com>


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 others
>
> that let you change properties of headings, cut them, etc...
>
> These are documented in the org code. The best way to learn how to use them
> is to reverse engineer how you would make the change you want manually,
> e.g. which keys do you press, then use C-h k on those keys to see what
> commands get run.

Yes, I've been doing that and I've arrived at something that works, just
wasn't sure it was the Right Way™. :-)

-- 
Joost Kremers
Life has its moments

  reply	other threads:[~2016-09-12 21:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-12 11:44 Programmatically handling org files Joost Kremers
2016-09-12 13:47 ` John Kitchin
2016-09-12 21:59   ` Joost Kremers
2016-09-12 18:21 ` Thorsten Jolitz
2016-09-12 18:30   ` John Kitchin
2016-09-12 21:37     ` Joost Kremers [this message]
2016-09-12 21:22   ` Joost Kremers
2016-09-12 22:10   ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r38odcl0.fsf@fastmail.fm \
    --to=joostkremers@fastmail.fm \
    --cc=emacs-orgmode@gnu.org \
    --cc=jkitchin@andrew.cmu.edu \
    --cc=tjolitz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).