From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Engster Subject: Re: org-caldav can't find org-prepare-agenda-buffers Date: Tue, 12 Mar 2013 21:31:51 +0100 Message-ID: <87hakgwea0.fsf@engster.org> References: <87k3puyri0.fsf@free.fr> <874ngt8mwl.fsf@Rainer.invalid> <87a9qlm24b.fsf@bzg.ath.cx> <87wqtk8tjx.fsf@free.fr> <87zjyg4i8m.fsf@engster.org> <871ubsfqcm.fsf@gmail.com> <87vc944gxn.fsf@engster.org> <87wqtke9sc.fsf@gmail.com> <87mwug4f5y.fsf@engster.org> <87sj48e8n8.fsf@gmail.com> <87ehfs43xl.fsf@engster.org> <877glj374n.fsf@free.fr> <928F746CECE04D56BDF3848A78421121@gmail.com> <87obevcwf2.fsf@gmail.com> <6AFF8646C27C4CE6A358F84B8B62284E@gmail.com> <87fw07cqsd.fsf@gmail.com> <28621C1EBBE544938B988FA134FB5FD0@gmail.com> <63701794CC0B434FA2BFE0233C420D45@gmail.com> <37E4F6B4499C4973BC5FFEB4FDF45533@gmail.com> <87hakh9lzp.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFVsf-0006sH-Qq for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 16:36:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFVrb-00082Y-ML for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 16:33:05 -0400 Received: from randomsample.de ([83.169.19.17]:34482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFVrb-0007zb-9z for emacs-orgmode@gnu.org; Tue, 12 Mar 2013 16:31:59 -0400 In-Reply-To: (Vincent Beffara's message of "Tue, 12 Mar 2013 11:18:32 +0100") 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: Vincent Beffara Cc: Nicolas Goaziou , emacs-orgmode@gnu.org, Julien Cubizolles Vincent Beffara writes: > In the meantime I also tweaked the way org-caldav manages UIDs to > exploit the fact that multiply occurring events are now exported > multiple times in ox-icalendar, everything works out well if only > org->ical is used. One thing remaining, on ical->org sync, there is an > issue that makes the next sync erase the event on ical and upload it > again, under another id (and with the info not generated by org-caldav > missing, of course). I think I know how to fix it, just need to find > some time ... > > I will send what works to the list. (In the meantime, David, don't > pull my second pull request, it is not right.) I appreciate your work, of course, but let me add a word of warning. I think if you give up the one-to-one correspondence that one Org event has exactly *one* event in the remote calendar, you are entering a world of pain. Remember that there are three things: new items, changed items and deleted items. Since these can happen on both sides, you have to figure out six different cases which must be handled properly. As you've already experienced, the changes on the calendar side are more difficult. What happens if you delete one of the events that stems from one Org entry? You would first have to figure out which timestamp created it, but how? Timestamps don't have UIDs, only the full entry has one. So you would have to somehow add this information to the event database which gets stored to disk. You might get this to work, but I have a gut feeling that you'll loose robustness. For example, the Google calendar CalDAV interface is pretty slow and not very reliable, so a robust resume functionality is essential. Also, I deliberately shoved conflict handling at the side for the moment, but this is a feature which will have to be added one day, and will complicate things much more. -David