Rob Davenport <rob.davenp...@us.abb.com> writes:

> FYI - so far, I've narrowed down when I get the "cannot be used in non-Org 
> buffer" error in my setup to the use of org-agenda-include-diary.
>
> With this set to t:
>
> (use-package org
>        ...
>        :config
>           (setq org-agenda-include-diary t)
>       ...

Thanks!
That's a good hint to start investigation.

I tried to create a small diary file

04/15/2025
  * Meeting with team @ 10:00
  * Dentist appointment @ 14:30
  * Pay electricity bill

Then, I opened a clean emacs, evaluated
M-: (setq org-agenda-include-diary t) RET
and opened agenda
M-x org-agenda RET a

I saw no warnings.
So, there is something extra going on.

I recommend putting (setq org-agenda-include-diary t) on
top of your config and trying to bisect again.

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