* Org Mode Calendar UID Mismatch. @ 2011-05-19 6:46 Ghanashyam 2011-05-19 12:03 ` Greg Troxel 0 siblings, 1 reply; 7+ messages in thread From: Ghanashyam @ 2011-05-19 6:46 UTC (permalink / raw) To: org-mode-mailing-list [-- Attachment #1: Type: text/plain, Size: 520 bytes --] 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. -- regards Shyam [-- Attachment #2: Type: text/html, Size: 719 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org Mode Calendar UID Mismatch. 2011-05-19 6:46 Org Mode Calendar UID Mismatch Ghanashyam @ 2011-05-19 12:03 ` Greg Troxel 2011-05-19 19:20 ` Niels Giesen 0 siblings, 1 reply; 7+ messages in thread From: Greg Troxel @ 2011-05-19 12:03 UTC (permalink / raw) To: Ghanashyam; +Cc: org-mode-mailing-list [-- Attachment #1: Type: text/plain, Size: 763 bytes --] Ghanashyam <mail.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, 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. [-- Attachment #2: Type: application/pgp-signature, Size: 194 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org Mode Calendar UID Mismatch. 2011-05-19 12:03 ` Greg Troxel @ 2011-05-19 19:20 ` Niels Giesen 2011-05-20 2:34 ` Ghanashyam 0 siblings, 1 reply; 7+ messages in thread From: Niels Giesen @ 2011-05-19 19:20 UTC (permalink / raw) To: Greg Troxel; +Cc: Ghanashyam, org-mode-mailing-list, Bastien Greg Troxel <gdt@ir.bbn.com> writes: > Ghanashyam <mail.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, 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. -- http://pft.github.com/ ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org Mode Calendar UID Mismatch. 2011-05-19 19:20 ` Niels Giesen @ 2011-05-20 2:34 ` Ghanashyam 2011-05-20 6:42 ` Niels Giesen 0 siblings, 1 reply; 7+ messages in thread From: Ghanashyam @ 2011-05-20 2:34 UTC (permalink / raw) To: Niels Giesen; +Cc: Bastien, org-mode-mailing-list, Greg Troxel [-- Attachment #1: Type: text/plain, Size: 3145 bytes --] On Fri, May 20, 2011 at 12:50 AM, Niels Giesen <niels.giesen@gmail.com>wrote: > Greg Troxel <gdt@ir.bbn.com> writes: > > > Ghanashyam <mail.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, 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/ > [-- Attachment #2: Type: text/html, Size: 4394 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org Mode Calendar UID Mismatch. 2011-05-20 2:34 ` Ghanashyam @ 2011-05-20 6:42 ` Niels Giesen 2011-05-20 9:40 ` Ghanashyam 0 siblings, 1 reply; 7+ messages in thread From: Niels Giesen @ 2011-05-20 6:42 UTC (permalink / raw) To: Ghanashyam; +Cc: org-mode-mailing-list, Greg Troxel Ghanashyam <mail.ghanashyam.prabhu@gmail.com> writes: [...] > > > > 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. Ok. I assume this is `org-icalendar-use-scheduled'. I did not know of it. > 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. Could you please provide a minimal example of an org file + provide info on your system setup (os, emacs version, org version, relevant org-icalendar-* vars) so that we might be able to reproduce this? Regards, Niels ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org Mode Calendar UID Mismatch. 2011-05-20 6:42 ` Niels Giesen @ 2011-05-20 9:40 ` Ghanashyam 2011-05-20 9:49 ` Niels Giesen 0 siblings, 1 reply; 7+ messages in thread From: Ghanashyam @ 2011-05-20 9:40 UTC (permalink / raw) To: Niels Giesen; +Cc: org-mode-mailing-list, Greg Troxel [-- Attachment #1: Type: text/plain, Size: 1480 bytes --] Hi Niels, I had faced this issue quite a couple of weeks back and I kept on trying to export the calendar the whole day doing adjustments to the UID format, and I could get the UID format to have only 7 to 8 characters. I was suprised to see long UIDs being generated today with like SC-7ea97bae-a785-4455-8af7-6688cb8f7170 and looks like these are unique. I had never checked the export after that whole day of struggle. May be following a restart the changes might have taken place. This sounds so silly now. I apologize for wasting your time and effort. I am really sorry about this. -- regards Shyam On Fri, May 20, 2011 at 12:12 PM, Niels Giesen <niels.giesen@gmail.com>wrote: > Ghanashyam <mail.ghanashyam.prabhu@gmail.com> writes: > > > [...] > > > > > > > > > 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. > > Ok. I assume this is `org-icalendar-use-scheduled'. I did not know of it. > > > 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. > > Could you please provide a minimal example of an org file + provide info > on your system setup (os, emacs version, org version, relevant > org-icalendar-* vars) so that we might be able to reproduce this? > > Regards, > Niels > [-- Attachment #2: Type: text/html, Size: 2174 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Org Mode Calendar UID Mismatch. 2011-05-20 9:40 ` Ghanashyam @ 2011-05-20 9:49 ` Niels Giesen 0 siblings, 0 replies; 7+ messages in thread From: Niels Giesen @ 2011-05-20 9:49 UTC (permalink / raw) To: Ghanashyam; +Cc: org-mode-mailing-list, Greg Troxel On Fri, May 20, 2011 at 11:40 AM, Ghanashyam <mail.ghanashyam.prabhu@gmail.com> wrote: > Hi Niels, > > I had faced this issue quite a couple of weeks back and I kept on trying to > export the calendar the whole day > doing adjustments to the UID format, and I could get the UID format to have > only 7 to 8 characters. > > I was suprised to see long UIDs being generated today with like > SC-7ea97bae-a785-4455-8af7-6688cb8f7170 and > looks like these are unique. I had never checked the export after that whole > day of struggle. May be following a > restart the changes might have taken place. > > This sounds so silly now. I apologize for wasting your time and effort. I am > really sorry about this. Oh well, this happens to all of us sometimes. Glad that it works now! ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-05-20 9:50 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-05-19 6:46 Org Mode Calendar UID Mismatch Ghanashyam 2011-05-19 12:03 ` Greg Troxel 2011-05-19 19:20 ` Niels Giesen 2011-05-20 2:34 ` Ghanashyam 2011-05-20 6:42 ` Niels Giesen 2011-05-20 9:40 ` Ghanashyam 2011-05-20 9:49 ` Niels Giesen
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.