Akash Pal <akashpau...@gmail.com> writes:

> I came across this flow of execution while trying to export a ghost
> org-file to pdf, meaning that the file is 'created' through #'find-file but
> not saved. While export the following backtrace is noted:
>
> ```
> Debugger entered--entering a function:
> * org-check-agenda-file("/home/akash/Desktop/test.org")
> org-agenda-prepare-buffers(("/home/akash/Desktop/test.org"))
> org-map-entries((lambda nil (org-set-tags (delete "attached"
> ...
> I have provisions to call #'org-map-entries before export this triggers
> #'org-agenda-prepare-buffers which finally calls #'org-check-agenda-files
>
> This asks the user what to do with a non existent file
>
> Non-existent agenda file %s. [R]emove from list or [A]bort?
>
> *Problem*
>
> I think this should not be called unless the file is part of
> 'org-agenda-files

This has been fixed already, on main branch.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6223f20a6
Canceled.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
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