From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joost Kremers Subject: Programmatically handling org files Date: Mon, 12 Sep 2016 13:44:39 +0200 Message-ID: <87twdlcpg8.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjPfX-0001OK-JO for emacs-orgmode@gnu.org; Mon, 12 Sep 2016 07:45:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjPfS-00009m-Ke for emacs-orgmode@gnu.org; Mon, 12 Sep 2016 07:44:59 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:36568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjPfQ-000070-6A for emacs-orgmode@gnu.org; Mon, 12 Sep 2016 07:44:54 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id A4906205F5 for ; Mon, 12 Sep 2016 07:44:41 -0400 (EDT) Received: from IdeaPad.messagingengine.com (x5f774b9a.dyn.telefonica.de [95.119.75.154]) by mail.messagingengine.com (Postfix) with ESMTPA id 13ED6CCDCB for ; Mon, 12 Sep 2016 07:44:40 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org mode 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