From: Joost Kremers <joostkremers@fastmail.fm>
To: org mode <emacs-orgmode@gnu.org>
Subject: Programmatically handling org files
Date: Mon, 12 Sep 2016 13:44:39 +0200 [thread overview]
Message-ID: <87twdlcpg8.fsf@fastmail.fm> (raw)
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 I mean headers with their contents), changing TODO state, moving
entries, that sort of thing.
Also, I was wondering if there's a way to hook into org-store-link. For
a particular major mode, I would like to be able to define what kind of
link is created when the user calls `org-store-link`. I looked at the
source of `org-store-link` and it looks like the answer is no, but I
thought I'd ask anyway. I could of course create the link myself and add
it to `org-stored-links` but that feels rather hackish and I suspect
will blow up in my face at some point in the future.
TIA
--
Joost Kremers
Life has its moments
next reply other threads:[~2016-09-12 11:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-12 11:44 Joost Kremers [this message]
2016-09-12 13:47 ` Programmatically handling org files 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twdlcpg8.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.