[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] lisp/org.el: Fix removing timestamp overlays
From: |
Ihor Radchenko |
Subject: |
Re: [PATCH] lisp/org.el: Fix removing timestamp overlays |
Date: |
Sun, 01 Sep 2024 14:55:55 +0000 |
Joseph Turner <joseph@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>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] lisp/org.el: Fix removing timestamp overlays,
Ihor Radchenko <=