c74c4ab18d
The new property is needed to reduce ambiguity when interpreting the parsed data. * lisp/org-element.el (org-element-timestamp-interpreter): Preserve old behavior when :range-type is `nil'. Take into account :range-type value when interpreting ranges. When :range-type is `timerange', return a timerange (<YYYY-mm-DD HH:MM-HH:MM>). If :range-type is `daterange' return a daterange (<...>--<...>). When :range-type is nil, return a daterange (as it was before). When :range-type is `daterange' or `timerange' and :type is `active'/`inactive', throw an error. (org-element-timestamp-parser): Add :range-type property. * lisp/org.el (org-timestamp-split-range): Make sure that :range-type is nil for a split timestamp. * testing/lisp/test-org-element.el (test-org-element/timestamp-interpreter): Add new tests. (test-org-element/timestamp-parser): Add tests for :range-type property. * etc/ORG-NEWS (Major changes and additions to Org API): Add news about this property. Link: https://list.orgmode.org/orgmode/87y1ot6dqz.fsf@gmail.com/ |
||
---|---|---|
.. | ||
csl | ||
schema | ||
styles | ||
Makefile | ||
ORG-NEWS |