[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] MobileOrg Export Broken
From: |
Ian Dunn |
Subject: |
[O] MobileOrg Export Broken |
Date: |
Thu, 23 Jun 2016 20:57:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
I run Org from the git repo, updating daily. I unsuccessfully tried
syncing with MobileOrg (Android) about two hours ago. I reverted org-mobile.el
back to the version from yesterday and found the problem: TODO keywords aren't
being listed correctly. Here's an example:
Old:
#+TODO: TODO | DEFERRED DONE PENDING CANCELLED
New:
#+TODO: TODO
This messes with MobileOrg, preventing it from syncing.
I worked through the problem, which appears to be caused by org-delete-all
being called before the TODO keywords are inserted into the file. I attached a
patch that fixes this problem.
--
Ian Dunn
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index 9c69128..9192561 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -446,8 +446,9 @@ agenda view showing the flagged items."
x))
(cdr entry)))
(dwds (or (member "|" kwds) (last kwds)))
- (twds (org-delete-all dwds kwds)))
+ (twds kwds))
(insert "#+TODO: " (mapconcat 'identity kwds " ") "\n")
+ (org-delete-all dwds twds)
(setq todo-kwds (org-delete-all twds todo-kwds))
(setq done-kwds (org-delete-all dwds done-kwds))))
(when (or todo-kwds done-kwds)
- [O] MobileOrg Export Broken,
Ian Dunn <=