Browse Source

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

When using relative file names, this may cause problems in staging.
Carsten Dominik 15 years ago
parent
commit
d4becc70e1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lisp/org-mobile.el

+ 2 - 0
lisp/org-mobile.el

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