emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mobile: Strange #+TODO: in index.org
@ 2012-03-28 22:11 Moritz Ulrich
  2012-03-29 10:51 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Moritz Ulrich @ 2012-03-28 22:11 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

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

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.

While this isn't a big deal, I'd rather have a clean setup. Can
someone point me in the right direction?
I'm using Org 7.8.06.


Cheers,
Moritz Ulrich

-- 
Moritz Ulrich

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mobile: Strange #+TODO: in index.org
  2012-03-28 22:11 org-mobile: Strange #+TODO: in index.org Moritz Ulrich
@ 2012-03-29 10:51 ` Bastien
  2012-03-29 23:12   ` Moritz Ulrich
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2012-03-29 10:51 UTC (permalink / raw)
  To: Moritz Ulrich; +Cc: emacs-orgmode

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

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


-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mobile: Strange #+TODO: in index.org
  2012-03-29 10:51 ` Bastien
@ 2012-03-29 23:12   ` Moritz Ulrich
  2012-03-31  8:39     ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Moritz Ulrich @ 2012-03-29 23:12 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

On Thu, Mar 29, 2012 at 12:51, Bastien <bzg@gnu.org> wrote:
> Hi Ulrich,

It's Moritz, everyone confuses this ;-) (No hard feelings)

> 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

I wasn't aware of | being a special operator for TODO keywords, thanks!

>> 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?
>

Sadly it causes a bunch of problems: MobileOrg and MobileOrg-NG
doesn't seem to recognize #+TYP_TODO: lines. With this patch applied,
MobileOrg doesn't recognize any TODO keyword and therefore fails to
parse them correctly. Looks like a bug in the MobileOrg projects.

>
> --
>  Bastien
>



-- 
Moritz Ulrich

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mobile: Strange #+TODO: in index.org
  2012-03-29 23:12   ` Moritz Ulrich
@ 2012-03-31  8:39     ` Bastien
  0 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2012-03-31  8:39 UTC (permalink / raw)
  To: Moritz Ulrich; +Cc: emacs-orgmode

Hi Moritz,

Moritz Ulrich <ulrich.moritz@googlemail.com> writes:

> On Thu, Mar 29, 2012 at 12:51, Bastien <bzg@gnu.org> wrote:
>> Hi Ulrich,
>
> It's Moritz, everyone confuses this ;-) (No hard feelings)

Sorry for that! 

>> Can you check if this patch against master fixes the problem for you?
>
> Sadly it causes a bunch of problems: MobileOrg and MobileOrg-NG
> doesn't seem to recognize #+TYP_TODO: lines. With this patch applied,
> MobileOrg doesn't recognize any TODO keyword and therefore fails to
> parse them correctly. Looks like a bug in the MobileOrg projects.

Mhh.. so I guess we (=you!) should live with it right now.  Perhaps 
adding the #+TODO across sync'ed files is the solution?

All best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-31  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-28 22:11 org-mobile: Strange #+TODO: in index.org Moritz Ulrich
2012-03-29 10:51 ` Bastien
2012-03-29 23:12   ` Moritz Ulrich
2012-03-31  8:39     ` Bastien

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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