Allow file names relative to org-directory in org-agenda-files

When using relative file names, this may cause problems in staging.
This commit is contained in:
Carsten Dominik 2009-10-23 22:19:23 +02:00
parent 6e9fce5869
commit d4becc70e1
1 changed files with 2 additions and 0 deletions

View File

@ -196,6 +196,8 @@ using `rsync' or `scp'.")
;; Make the files unique, and determine the name under which they will
;; be listed.
(while (setq file (pop files))
(if (not (file-name-absolute-p file))
(setq file (expand-file-name file org-directory)))
(setq uname (file-truename file))
(unless (member uname seen)
(push uname seen)