In ~/.emacs/init.el i have:
(setq org-agenda-files (list "~/org"))
Most of the .org files in that directory have associated .org_archive files with a long history of archived TODO tasks.
When I run org-agenda, it collects any TODO item in the .org_archive files.
Is there a regex type solution to exclude files ending in .org_archive? I've previously identified individual files to include in the agenda view but that's getting a little cumbersome.
The value of org-agenda-file-regexp is:
"\\`[^.].*\\.org\\'"
org-agenda-file-regexpbut its default setting should not allow matchingfoo.org_archivefiles anyway. What is the value of that variable in your setup? Please edit the question and add that information. – NickD Mar 22 '20 at 16:46(org-agenda-files)return? You can evaluate that by entering it in your*scratch*buffer and pressingC-j. The return value should be a list of all the agenda files. Does it include any.org_archivefiles? – NickD Mar 22 '20 at 18:23...)though so maybe the list continues? – Hugh_Kelley Mar 22 '20 at 19:46grep -i). The ellipsis does indeed mean there is more: see https://emacs.stackexchange.com/questions/34413/what-is-the-meaning-of-the-ellipsis-at-the-end-of-some-output for some settings that will allow you to see the whole thing. – NickD Mar 22 '20 at 22:13