emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] org.el: Respect org-extend-today-until in timestamps with ++


From: Ihor Radchenko
Subject: Re: [PATCH] org.el: Respect org-extend-today-until in timestamps with ++
Date: Sun, 13 Aug 2023 12:44:48 +0000

Ihor Radchenko <yantar92@posteo.net> writes:

>>                      (while (or (= nshift 0)
>> -                               (not (time-less-p nil time)))
>> +                                   (not (time-less-p nil (time-add 
>> time-to-extend time))))
>
> And this compares "now" with year 1970. Will always return nil.

Hmm. I somehow missed `time-add'.
However, this is still fishy.
What if we have something like <2023-08-13 2:00 ++8h>?
`org-extend-today-until' should probably be ignored then.

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