[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] make 'org-at-date-range-p work like org-at-timestamp-p
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] make 'org-at-date-range-p work like org-at-timestamp-p |
Date: |
Mon, 18 Mar 2019 22:43:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
address@hidden (Thomas Plass) writes:
> it's counter-intuitive that 'org-at-date-range-p doesn't work like
> 'org-at-timestamp-p when point is on the leading bracket of a range.
> Witness (^ = point)
>
> <2019-12-30 Mo 12:00>
> ^ (org-at-timestamp-p) => t
>
> <2019-12-30 Mo 12:00>--<2019-12-31 Di 09:00>
> ^ (org-at-timestamp-p) => t
> ^ (org-at-date-range-p) => t
> ^ (org-at-date-range-p) => nil
>
> Is the attached patch OK?
Thank you.
I think the incompatibility is deeper than that. IMO,
`org-at-date-range-p' should obey to the same arguments as
`org-at-timestamp-p'. IOW, a rewrite is in order.
Regards,
--
Nicolas Goaziou