lou <[email protected]> writes: > Ok I'm now fairly certain it's a bug. I'm attaching a minimum > org-file that reproduces the issue with `emacs -Q` for me. > > ~lou > > * This is a header with a timestamp > <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)))) > (setq org-agenda-prefix-format '((agenda . "%(org-get-category)"))) > (org-agenda) > #+end_src
You can use %c to insert category in agenda prefix. Calling org-get-category directly is a mistake - the %(...) functions are ran in agenda buffer, not in Org buffer, which `org-get-category' expects. I now clarified where %(expression) is evaluated in the org-agenda-prefix-format docstring. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=67922b8c0 Fixed. -- 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>
