emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Niels Giesen <niels.giesen@gmail.com>
To: Greg Troxel <gdt@ir.bbn.com>
Cc: Ghanashyam <mail.ghanashyam.prabhu@gmail.com>,
	org-mode-mailing-list <emacs-orgmode@gnu.org>,
	Bastien <bastien.guerry@wikimedia.fr>
Subject: Re: Org Mode Calendar UID Mismatch.
Date: Thu, 19 May 2011 21:20:41 +0200	[thread overview]
Message-ID: <87hb8qmr92.fsf@gmail.com> (raw)
In-Reply-To: <rmi1uzunbhp.fsf@fnord.ir.bbn.com> (Greg Troxel's message of "Thu, 19 May 2011 08:03:30 -0400")

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/

  reply	other threads:[~2011-05-19 19:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hb8qmr92.fsf@gmail.com \
    --to=niels.giesen@gmail.com \
    --cc=bastien.guerry@wikimedia.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=gdt@ir.bbn.com \
    --cc=mail.ghanashyam.prabhu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).