From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vamsi Vytla Subject: Re: org-mobile-push and MobileOrg compatibility issue Date: Mon, 12 Oct 2015 17:42:41 +0000 Message-ID: References: <87pp1xjlts.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ff9fec544050521ebdb34 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlh7d-0006yj-SG for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 13:42:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlh7c-0006Zg-II for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 13:42:53 -0400 Received: from mail-io0-x232.google.com ([2607:f8b0:4001:c06::232]:36296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlh7c-0006ZW-Da for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 13:42:52 -0400 Received: by ioii196 with SMTP id i196so157309557ioi.3 for ; Mon, 12 Oct 2015 10:42:51 -0700 (PDT) In-Reply-To: <87pp1xjlts.fsf@nicolasgoaziou.fr> 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: emacs-orgmode@gnu.org, gordienkos@gmail.com --001a113ff9fec544050521ebdb34 Content-Type: text/plain; charset=UTF-8 Hi Nicolas, I can guarantee you that your suggestion did NOT work for me. I haven't heard anything from Sergey here. Looks like people at MobileOrg-Android maybe running into the same issue: https://github.com/matburt/mobileorg-android/issues/472#issuecomment-147403622 Any thoughts? Vamsi On Sat, Sep 5, 2015 at 1:44 AM Nicolas Goaziou wrote: > Hello, > > Vamsi Vytla writes: > > > M-x 'org-mobile-push', with the latest org-mode leaves the files > > incompatible with MobileOrg Android application. There have been no > changes > > in MobileOrg for over a year. > > > > I bisected the latest org-mobile related changes and noticed that > reverting > > this one line below "fixes" the issue (at least for me). Since there > aren't > > any tests, it's hard to validate changes and understand things easily. > > > > If anybody can point me in the right direction, I would love to look into > > it further. > > > > Cheers! > > > > diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el > > index 6c7c8d0..7e1127c 100644 > > --- a/lisp/org-mobile.el > > +++ b/lisp/org-mobile.el > > @@ -446,7 +446,7 @@ agenda view showing the flagged items." > > x)) > > (cdr entry))) > > (insert "#+TODO: " (mapconcat 'identity kwds " ") "\n") > > - (setq dwds (or (member "|" kwds) (last kwds)) > > + (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))) > > IIRC this change was introduced to fix another bug. It might be useful > to discuss with the author of this change. Another option is to use > > (or (member "|" kwds) (cons "|" (last kwds))) > > > Regards, > > -- > Nicolas Goaziou > --001a113ff9fec544050521ebdb34 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Nicolas,

I can guarantee you that yo= ur suggestion=C2=A0did NOT work for me. I h= aven't heard anything from Sergey here. Looks like people at MobileOrg-= Android maybe running into the same issue:


Any thoughts?<= /span>

Vamsi

On Sat, Sep 5, 2015 at 1:44 AM Ni= colas Goaziou <mail@nicolasgoaziou.fr> wrote:
Hello,

Vamsi Vytla <= vamsi.vytla@gmail.com> writes:

> M-x 'org-mobile-push', with the latest org-mode leaves the fil= es
> incompatible with MobileOrg Android application. There have been no ch= anges
> in MobileOrg for over a year.
>
> I bisected the latest org-mobile related changes and noticed that reve= rting
> this one line below "fixes" the issue (at least for me). Sin= ce there aren't
> any tests, it's hard to validate changes and understand things eas= ily.
>
> If anybody can point me in the right direction, I would love to look i= nto
> it further.
>
> Cheers!
>
> diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el
> index 6c7c8d0..7e1127c 100644
> --- a/lisp/org-mobile.el
> +++ b/lisp/org-mobile.el
> @@ -446,7 +446,7 @@ agenda view showing the flagged items."
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 x))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 (cdr entry)))
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(insert "#+TODO: " (mapconc= at 'identity kwds " ") "\n")
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq dwds (or (member "|" kwds)= (last kwds))
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0(setq dwds (member "|" kwds)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0twds (org-delete= -all dwds kwds)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0todo-kwds (org-d= elete-all twds todo-kwds)
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0done-kwds (org-d= elete-all dwds done-kwds)))

IIRC this change was introduced to fix another bug. It might be useful
to discuss with the author of this change. Another option is to use

=C2=A0 (or (member "|" kwds) (cons "|" (last kwds)))

Regards,

--
Nicolas Goaziou
--001a113ff9fec544050521ebdb34--