Hi,
I've run into what i believe is a version of this issue. I'm
getting the same warning as in OP here. But for agenda entries on
the current day.
```
⛔ Warning (org-element): ‘org-element-at-point’ cannot be used in
non-Org buffer #<buffer *Org Agenda*> (org-agenda-mode)
```
Org mode version 9.7.11 (release_9.7.11 @
/usr/share/emacs/30.2/lisp/org/)
I've traced it to a call to `org-get-category` in a function I
call in my custom `org-agenda-prefix-format`. And further to the
call to `org-entry-get-with-inheritance` within that (the warning
goes away if i directly call `org-entry-get`).
I thought it might be match-data related but wrapping the calls in
`save-match-data` does nothing afaict.
I'd be glad if someone could tell me whether this is expected
behaviour or a bug and would appreaciate any recommendations on
how to work around it either way.
Best regards
~lou