Hello, thu...@arcor.de (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