[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Month-week and quarter-week datetrees (RFC and package announcement)
From: |
Ihor Radchenko |
Subject: |
Re: Month-week and quarter-week datetrees (RFC and package announcement) |
Date: |
Mon, 30 Dec 2024 17:11:19 +0000 |
Jack Kamm <jackkamm@gmail.com> writes:
> Does `org-element-cache-map' traverse elements in the order they're in
> the buffer? That is something we need for this.
Yes, it does.
You can even edit buffer along the way.
`org-element-cache-map' combines regexp search and parser cache trying
to be as fast as possible.
> On my working branch I have an earlier commit that implements many of
> the improvements here but using the old regexp search way instead of the
> org-element way. Would it be worth reverting to that point?
> Specifically, the new `org-datetree-find-create-entry' that allows for
> nested years/quarters/months/weeks/days is still pretty straightforward
> to implement in the regexp approach. The more general
> `org-datetree-find-create-hierarchy' (that allows elisp hackers to build
> new kinds of datetrees) might be trickier without org-element, but we
> could also defer that for future work.
I believe that `org-element-cache-map' should be good enough to do
everything.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
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>