[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`org-element-cache-map' misses elements at end of buffer
From: |
Morgan Smith |
Subject: |
`org-element-cache-map' misses elements at end of buffer |
Date: |
Thu, 18 Apr 2024 09:33:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Hello!
I may or may not have been trying to rewrite `org-clock-sum' for like
the 5th time.
Anyways I was wanting to parse a file using `org-element-cache-map' that
looked roughly like this:
========
* clock
:LOGBOOK:
CLOCK: [2024-03-24 Sun 15:18]--[2024-03-24 Sun 15:39] => 0:21
:END:
=======
However I couldn't get the clock element this way. After much trail and
error I found that simply adding another heading on the end allowed me
to get the clock element!
I've attached a test so you can reproduce the problem. In the test it
is a paragraph element that is not showing up.
0001-failing-test.patch
Description: Text Data