diff options
author | Morgan Smith <Morgan.J.Smith@outlook.com> | 2024-04-03 16:30:42 -0400 |
---|---|---|
committer | Ihor Radchenko <yantar92@posteo.net> | 2024-04-11 16:17:40 +0300 |
commit | 66e307b411eb74409a2acb82d3450e9702e64c23 (patch) | |
tree | bc2a0574ff31cfe502455e979e9caac918a248c2 /etc | |
parent | ead3f999010c2ff4865e89fcf404c4ae4069fb83 (diff) |
lisp/org-element.el: Add repeater-deadline support to org-element
* lisp/org-element.el (org-element-timestamp-parser,
org-element-timestamp-interpreter): Add support for repeater
deadlines. Adds two new properties: ':repeater-deadline-value' and
':repeater-deadline-unit'.
* testing/lisp/test-org-element.el (test-org-element/timestamp-parser,
test-org-element/timestamp-interpreter): Test support for repeater
deadlines.
* etc/ORG-NEWS: Add relevant news.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ORG-NEWS | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index aeb7ffd4b..e61bd6988 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -512,6 +512,22 @@ timestamp object. Possible values: ~timerange~, ~daterange~, ~nil~. ~org-element-timestamp-interpreter~ takes into account this property and returns an appropriate timestamp string. +**** New properties =:repeater-deadline-value= and =:repeater-deadline-unit= for org-element timestamp object + +~org-element-timestamp-parser~ now adds =:repeater-deadline-value= and +=:repeater-deadline-unit= properties to each timestamp object that has +a repeater deadline. For example, in =<2012-03-29 Thu ++1y/2y>=, =2y= +is the repeater deadline with a value of =2= and unit of =y=. See +"5.3.3 Tracking your habits" section in the manual. + +Possible values for =:repeater-deadline-value=: ~positive integer~, ~nil~. + +Possible values for =:repeater-deadline-unit=: ~hour~, ~day~, ~week~, +~month~, ~year~. + +~org-element-timestamp-interpreter~ takes into account these properties +and returns an appropriate timestamp string. + **** =org-link= store functions are passed an ~interactive?~ argument The ~:store:~ functions set for link types using |