瀏覽代碼

let `org-agenda-files' when making mobile agenda

John Wiegley 13 年之前
父節點
當前提交
9d16365c20
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/org-mobile.el

+ 3 - 1
lisp/org-mobile.el

@@ -318,7 +318,9 @@ create all custom agenda views, for upload to the mobile phone."
 	  (org-mobile-check-setup)
 	  (org-mobile-prepare-file-lists)
 	  (message "Creating agendas...")
-	  (let ((inhibit-redisplay t)) (org-mobile-create-sumo-agenda))
+	  (let ((inhibit-redisplay t)
+		(org-agenda-files (mapcar 'car org-mobile-files-alist)))
+	    (org-mobile-create-sumo-agenda))
 	  (message "Creating agendas...done")
 	  (org-save-all-org-buffers) ; to save any IDs created by this process
 	  (message "Copying files...")