From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ghanashyam Subject: Re: Org Mode Calendar UID Mismatch. Date: Fri, 20 May 2011 08:04:43 +0530 Message-ID: References: <87hb8qmr92.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51969570d5e5c04a3abf8ce Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54010) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNFYP-0003DI-Ib for emacs-orgmode@gnu.org; Thu, 19 May 2011 22:35:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNFYO-0002JD-05 for emacs-orgmode@gnu.org; Thu, 19 May 2011 22:35:05 -0400 Received: from mail-vx0-f169.google.com ([209.85.220.169]:60588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNFYN-0002Il-Su for emacs-orgmode@gnu.org; Thu, 19 May 2011 22:35:03 -0400 Received: by vxk20 with SMTP id 20so3122688vxk.0 for ; Thu, 19 May 2011 19:35:03 -0700 (PDT) In-Reply-To: <87hb8qmr92.fsf@gmail.com> 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: Niels Giesen Cc: Bastien , org-mode-mailing-list , Greg Troxel --bcaec51969570d5e5c04a3abf8ce Content-Type: text/plain; charset=UTF-8 On Fri, May 20, 2011 at 12:50 AM, Niels Giesen wrote: > Greg Troxel writes: > > > Ghanashyam writes: > > > >> I have had a problem with the org mode calendar export with emacs. > >> It looks like org mode uses some uid generation exe which > >> generates non unique UIDs. I am not sure why this is to. Even when I > >> set the UID format to include the date format. Because of this, the ics > >> file import into google calendar or a thunderbird import fails to import > all > >> tasks that were reported as Scheduled in the org mode document. > >> > >> Anyone with similar experiences.? I put this up on stack overflow but > >> there was no response. > > > > I'm haing the inverse problem, but I hadn't tracked it down enough to > > post. I find that after importing into Apple iCal (mac 10.6), and > > doing another import, I end up with two events. > > @Greg: > > Org-mode UIDs are ignored if they are for entries with diary sexps, as > calendar.el creates its own ids for them. This may be the cause for > double entries when you export your org file & import the ical file > multiple times and you use diary sexps. > > A while ago I submitted some patches, one to calendar.el and one to > org-icalendar.el, that - besides adding export of diary-float sexps - > fixed this (i.e. org-icalendar puts a UID text-property on the entry, > picked up by calendar.el when creating the ical entries). > > The patches to calendar.el were applied, but I believe the one to > org-icalendar.el should still be applied. However, I believe Bastien has > had little time lately, or maybe he's forgotten or overseen that those > patches to Emacs have already been applied. I put Bastien in the CC of > this mail, just as a reminder. > > See > http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg00668.html if > you want to try out the UID patch to org-icalendar.el. Note that you > also need a recent development Emacs (from bazaar, later than april 27th > 2011) to have the other patches applied as well. > > @Ghanashyam: > > Above story aside, no entry should be without UID, and I think a > non-unique UID is highly improbable. Did you > check inside the ical file to see whether the entries you talk about > were eported at all? If I create a simple test file, e.g. > > #+begin_src org > * test > SCHEDULED: <2011-05-19 Thu 11:00> > #+end_src > > ... and call C-c C-e i this entry does not get exported, but this entry > would: > > #+begin_src org > * test2 > <2011-05-19 Thu 12:00> > #+end_src > > i.e., SCHEDULED entries aren't exported, while others are, but this does > not seem to have anything to do with UIDs. > > Regards, > Niels. > > > I check the ics file and I can perfectly see that the UIDs were replicated.(exactly same). Also all my events were scheduled but there is one parameter which said, SCHEDULED or unSCHEDULED, you export events. Its not about being exported or missing in export. The problem is the ics file has all the entries but multiple entries have the same UID which is my issue. -- regards Shyam > > -- > http://pft.github.com/ > --bcaec51969570d5e5c04a3abf8ce Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On Fri, May 20, 2011 at 12:50 AM, Niels Gies= en <niels.gi= esen@gmail.com> wrote:
Greg Troxel <gdt@ir.bbn.com> writes:

> Ghanashyam <mai= l.ghanashyam.prabhu@gmail.com> writes:
>
>> I have had a problem with the org mode calendar export with emacs.=
>> It looks like org mode uses some uid generation exe which
>> generates non unique UIDs. I am not sure why this is to. Even when= I
>> set the UID format to include the date format. Because of this, th= e ics
>> file import into google calendar or a thunderbird import fails to = import all
>> tasks that were reported as Scheduled in the org mode document. >>
>> Anyone with similar experiences.? I put this up on stack overflow = but
>> there was no response.
>
> I'm haing the inverse problem, but I hadn't tracked it down en= ough to
> post. =C2=A0 I find that after importing into Apple iCal (mac 10.6), a= nd
> doing another import, I end up with two events.

@Greg:

Org-mode UIDs are ignored if they are for entries with diary sexps, as
calendar.el creates its own ids for them. This may be the cause for
double entries when you export your org file & import the ical file
multiple times and you use diary sexps.

A while ago I submitted some patches, one to calendar.el and one to
org-icalendar.el, that - besides adding export of diary-float sexps -
fixed this (i.e. org-icalendar puts a UID text-property on the entry,
picked up by calendar.el when creating the ical entries).

The patches to calendar.el were applied, but I believe the one to
org-icalendar.el should still be applied. However, I believe Bastien has had little time lately, or maybe he's forgotten or overseen that those<= br> patches to Emacs have already been applied. I put Bastien in the CC of
this mail, just as a reminder.

See
http://lists.gnu.org/archive/html/emacs-orgmode/20= 11-02/msg00668.html if
you want to try out the UID patch to org-icalendar.el. Note that you
also need a recent development Emacs (from bazaar, later than april 27th 2011) to have the other patches applied as well.

@Ghanashyam:

Above story aside, no entry should be without UID, and I think a
non-unique UID is highly improbable. Did you
check inside the ical file to see whether the entries you talk about
were eported at all? If I create a simple test file, e.g.

#+begin_src org
* test
=C2=A0SCHEDULED: <2011-05-19 Thu 11:00>
#+end_src

... and call C-c C-e i this entry does not get exported, but this entry wou= ld:

#+begin_src org
* test2
=C2=A0<2011-05-19 Thu 12:00>
#+end_src

i.e., SCHEDULED entries aren't exported, while others are, but this doe= s
not seem to have anything to do with UIDs.

Regards,
Niels.


I check the ics=20 file and I can perfectly see that the UIDs were replicated.(exactly=20 same). Also all my events were scheduled but there is one parameter=20 which said, SCHEDULED or unSCHEDULED, you export events.

Its not about being exported or missing in export. The problem is the=20 ics file has all the entries but multiple entries have the same UID=20 which is my issue.

--
regards
Shyam

=C2=A0

--
http://pft.github.com/=

--bcaec51969570d5e5c04a3abf8ce--