emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] org-element-timestamp-interpreter: Return daterange anyway,


From: Ihor Radchenko
Subject: Re: [PATCH] org-element-timestamp-interpreter: Return daterange anyway, if DATERANGE is non-nil
Date: Mon, 20 Feb 2023 11:07:19 +0000

Ilya Chernyshov <ichernyshovvv@gmail.com> writes:

> 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?

What about recording the type of timestamp range in the parser?
Then, interpreter can simply examine the range type and emit the correct
timestamp string.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]