org-element: Timestamp with time range has active/inactive-range type
commitcb32494e246edf27b090ea54326f11f1a6e155f9
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 15 Nov 2012 20:46:08 +0000 (15 21:46 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 22 Nov 2012 21:32:48 +0000 (22 22:32 +0100)
treedfb3c2107235cf8258f93cf961e5bb11841cc256
parent68234d5a410c01ad9457f746bbd1f3d7fdfb0245
org-element: Timestamp with time range has active/inactive-range type

* lisp/org-element.el (org-element-timestamp-parser): Timestamp with
  time range has active/inactive-range type.
* testing/lisp/test-org-element.el: Add test.

In order to know if starting date/time is really the same as ending
date/time, this patch permits to use the following:

  (memq (org-element-property :type timestamp) '(active inactive))
lisp/org-element.el
testing/lisp/test-org-element.el