org-element: Improve timestamps parsing
commitc1e3aaece33f8d603ece5709d5191fe780dd26cc
authorNicolas Goaziou <n.goaziou@gmail.com>
Fri, 28 Sep 2012 12:50:21 +0000 (28 14:50 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Sun, 28 Oct 2012 15:29:55 +0000 (28 16:29 +0100)
treeae872799a5df72d2b767596e4989cca3e30d3c1d
parent2f2a80fe062df5eaacbd5bc3a34a52f6684dcee9
org-element: Improve timestamps parsing

* lisp/org-element.el (org-element-timestamp-parser): Modify timestamp
  objects properties.
(org-element-headline-parser, org-element-inlinetask-parser): Remove
`:timestamp' and `:clock' property.  Add `:clockedp' property.  Also,
set `:closed', `:deadline' and `:scheduled' values to timestamp
objects, not strings.  Small refactoring.
(org-element-clock-parser): Rename `:time' property into `:duration'.
Also, set `:value' value as a timestamp object, not a string.
(org-element-planning-parser): Set `:closed', `:deadline' and
`:scheduled' values to timestamp objects, not strings.
(org-element-clock-interpreter, org-element-planning-interpreter)
(org-element-timestamp-interpreter): Update interpreters.
(org-element--current-element): Tiny refactoring.
* testing/lisp/test-org-element.el: Add tests.
lisp/org-element.el
testing/lisp/test-org-element.el