From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Subject: Re: Org Mode TOOD two way sync tool Date: Sun, 24 Jun 2012 15:15:19 +0200 Message-ID: References: <4FE45EF9.8040307@grierwhite.com> <4FE47BA2.8010406@grierwhite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Simf1-0001T4-Bk for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 09:15:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Simew-0003Fv-N1 for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 09:15:26 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:43955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Simew-0003Da-GR for emacs-orgmode@gnu.org; Sun, 24 Jun 2012 09:15:22 -0400 Received: by obhx4 with SMTP id x4so6521047obh.0 for ; Sun, 24 Jun 2012 06:15:19 -0700 (PDT) In-Reply-To: <4FE47BA2.8010406@grierwhite.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode@grierwhite.com Cc: emacs-orgmode@gnu.org Hi, I'm working on a bugtracker sync tool for org-mode [1]. I'm using org-element to parse org files, it does everything I need. It turns this * TODO blah <2012-06-25> :PROPERTIES: :foo: bar :END: Foo bar into this: (org-data nil (headline (:raw-value "blah <2012-06-25>" :title ("blah " (timestamp (:type active :value "<2012-06-25>"))) :level 1 :todo-keyword "TODO" :todo-type todo :timestamp "2012-06-25" :foo "bar" :category "???") (section () (property-drawer (:properties (("foo" . "bar")))) (paragraph () "Foo bar")))) I've removed irrelevant stuff for the example but you can get get the start/end point of each element from this structure. Just call org-element-parse-buffer. 1: http://orgmode.org/w/org-sync.git