Browse Source

Another mobile fix.

Carsten Dominik 15 years ago
parent
commit
93f3968e3f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-mobile.el

+ 2 - 1
lisp/org-mobile.el

@@ -306,7 +306,8 @@ agenda view showing the flagged items."
       (insert "#+TAGS: " (mapconcat 'identity tags " ") "\n")
       (insert "#+DRAWERS: " (mapconcat 'identity drawers " ") "\n")
       (insert "#+ALLPRIORITIES: A B C" "\n")
-      (when (file-exists-p "agendas.org")
+      (when (file-exists-p (expand-file-name
+			    org-mobile-directory "agendas.org"))
 	(insert "* [[file:agendas.org][Agenda Views]]\n"))
       (while (setq entry (pop files-alist))
 	(setq file (car entry)