From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-mobile: Strange #+TODO: in index.org Date: Thu, 29 Mar 2012 12:51:33 +0200 Message-ID: <87fwcru1ca.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDCvu-0001E0-Lo for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:50:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDCvo-0005qN-Hv for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:50:22 -0400 Received: from incoming2.cnam.fr ([163.173.128.34]:53309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDCvo-0005q9-CO for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 06:50:16 -0400 In-Reply-To: (Moritz Ulrich's message of "Thu, 29 Mar 2012 00:11:13 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Moritz Ulrich Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi Ulrich, Moritz Ulrich 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? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=org-mobile.patch 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) --=-=-= Content-Type: text/plain -- Bastien --=-=-=--