Hi Ulrich,
Moritz Ulrich <[email protected]> writes:
> I recently started using org-mode in combination with MobileOrg rather
> excessively. Everything works pretty good, with one exception:
> `org-mobile-push' adds a strange #+TODO: line to index.org:
>
> #+TODO: | DONE
See this section in the manual:
5.2.5 Setting up keywords for individual files in
> This confuses my MobileOrg application (Android, MobileOrg-NG, a fork)
> and I couldn't find the source of the problem:
>
> - grepped my org-agenda files for 'DONE', '|' or 'TODO' (no abnormalities)
> - Checked `org-todo-keywords', `org-todo-keywords-for-agenda' and
> `org-todo-keyword-alist-for-agenda'. Again, nothing strange.
>
> The only file with this abnormality is index.org after
> org-mobile-push. Killing the line fixes it, but the next push will add
> it again.
Can you check if this patch against master fixes the problem for you?
diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
index 946e821..db2943f 100644
--- a/lisp/org-mobile.el
+++ b/lisp/org-mobile.el
@@ -441,13 +441,13 @@ agenda view showing the flagged items."
(substring x 0 (match-beginning 0))
x))
(cdr entry)))
- (insert "#+TODO: " (mapconcat 'identity kwds " ") "\n")
+ (insert "#+TYP_TODO: " (mapconcat 'identity kwds " ") "\n")
(setq dwds (member "|" kwds)
twds (org-delete-all dwds kwds)
todo-kwds (org-delete-all twds todo-kwds)
done-kwds (org-delete-all dwds done-kwds)))
(when (or todo-kwds done-kwds)
- (insert "#+TODO: " (mapconcat 'identity todo-kwds " ") " | "
+ (insert "#+TYP_TODO: " (mapconcat 'identity todo-kwds " ") " | "
(mapconcat 'identity done-kwds " ") "\n"))
(setq def-tags (mapcar
(lambda (x)
--
Bastien