|
From: | Ilya Chernyshov |
Subject: | [PATCH] org-element-timestamp-interpreter: Return daterange anyway, if DATERANGE is non-nil |
Date: | Sun, 19 Feb 2023 19:25:38 +0700 |
User-agent: | mu4e 1.8.13; emacs 30.0.50 |
Hello, guys`org-element-timestamp-interpreter' function returns string of the form "<2023-02-19 Sun 10:00>--<2023-02-19 Sun 10:30>" for a timestamp object passed to it. The better result would be "<2023-02-19 Sun 10:00-10:30>".
This function is also used for interpreting clock entries, which only have the format of "[2023-02-19 Sun 10:00]--[2023-02-19 Sun 10:30]".
So, an option is needed that controls whether to return a daterange (even it's possible to return a timerange) or a timerange (if the dates
in the range are equal).I wrote a patch that handles this problem, could you please review the
code and give some advice to improve it? -- Best, Ilya
[Prev in Thread] | Current Thread | [Next in Thread] |