Joseph Turner <jos...@breatheoutbreathe.in> writes:

> Subject: [PATCH] lisp/org.el: Fix removing timestamp overlays

Thanks, although I believe that we can fix things even better.
(If I understand the problem you are trying to solve correctly; just in
case, please explain what you are trying to solve ;])

>       (when (and (get-text-property p 'display)
> -                (eq (get-text-property p 'face) 'org-date))
> +                (memq 'org-date (ensure-list (get-text-property p 'face))))

Rather than relying upon fontification settings, we may modify
`org-display-custom-time' to put a special text property to mark the
overlayed timestamps. Then, searching for that property will give
reliable info on what is and what is not a time overlay.

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