emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Moritz Ulrich <ulrich.moritz@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mobile: Strange #+TODO: in index.org
Date: Thu, 29 Mar 2012 12:51:33 +0200	[thread overview]
Message-ID: <87fwcru1ca.fsf@gnu.org> (raw)
In-Reply-To: <CALw-MDqgVX85UeQsjnuc1nYbkfn_FiWfATp+NLRUXwpnGYPo_w@mail.gmail.com> (Moritz Ulrich's message of "Thu, 29 Mar 2012 00:11:13 +0200")

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

Hi Ulrich,

Moritz Ulrich <ulrich.moritz@googlemail.com> 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?

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-mobile.patch --]
[-- Type: text/x-patch, Size: 830 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


  reply	other threads:[~2012-03-29 10:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-28 22:11 org-mobile: Strange #+TODO: in index.org Moritz Ulrich
2012-03-29 10:51 ` Bastien [this message]
2012-03-29 23:12   ` Moritz Ulrich
2012-03-31  8:39     ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwcru1ca.fsf@gnu.org \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=ulrich.moritz@googlemail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).