Robert <[email protected]> writes:

> I am surprised by the interaction between org-agenda-files and customization 
> behaviour.
>
> - org-agenda-files can be directories, which are scanned for org
>   files. This is set in my init.el config.
> - when another org file is added with org-agenda-file-to-front (C-c [)
>   the directories in org-agenda-files are expanded to a list of files in in 
> the
>   customisation/custom.el file.
> - when later an org file is added to the directory it is not clear why
>   it is not picked up, since it is now missing from the expanded list.
>
> Expected behaviour: a new org file added to a directory specified in
> org-agenda-files should be picked up by the agenda without needing to
> use org-agenda-file-to-front. But org-agenda-file-to-front should
> still be available for files not in that directory.

Confirmed.
This situation needs to be handled in `org-store-new-agenda-file-list',
but it is not.

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