lou <[email protected]> writes:

>> You can use `org-agenda-get-category' from inside agenda buffer.
>
> I think there's something not right here. If I evaluate this
> modified example, again in `emacs -Q`
>
> * This is a header with a timestamp
> :PROPERTIES:
> :CATEGORY: test
> :END:
> <2025-12-09 Di 12:00-14:00>
>
> To Reproduce the warning the timestamp must be for the current day *and* have 
> a
> time component.
>
> #+begin_src emacs-lisp
>   (setq org-agenda-files (list (buffer-file-name (current-buffer))))
>   
>   (defun prefix-fn ()
>     (or (org-agenda-get-category)
>         buffer-file-name))

Yeah. Looks like prefix is computed _before_ category is produced for
agenda. So, org-agenda-get-category is too early to be useful.
So you may need `org-agenda-with-point-at-orig-entry' as I said in the
updated docstring.

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

Reply via email to