org-agenda-files: Work with relative file paths

* lisp/org.el (org-agenda-files): Make sure org-agenda-files work with relative
file paths.

TINYCHANGE
This commit is contained in:
Sun Lin 2021-05-13 09:52:33 +00:00 committed by Nicolas Goaziou
parent 13c78a5900
commit 21eb69c413
1 changed files with 1 additions and 1 deletions

View File

@ -15355,7 +15355,7 @@ used by the agenda files. If ARCHIVE is `ifmode', do this only if
(if (file-directory-p f)
(directory-files
f t org-agenda-file-regexp)
(list f)))
(list (expand-file-name f org-directory))))
files)))
(when org-agenda-skip-unavailable-files
(setq files (delq nil