From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-caldav problem; used to work Date: Mon, 17 Nov 2014 00:12:29 +0100 Message-ID: <871tp2spsy.fsf@nicolasgoaziou.fr> References: <20141113154144.3c3e9d20@gaia> <87a93qvmm0.fsf@engster.org> <20141116231531.43e7141f@linux-w3xx> <8761eevkjn.fsf@engster.org> <20141116235825.420fe95a@linux-w3xx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xq8z1-0002yG-6j for emacs-orgmode@gnu.org; Sun, 16 Nov 2014 18:11:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xq8yt-0003KA-MG for emacs-orgmode@gnu.org; Sun, 16 Nov 2014 18:11:51 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:40914) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xq8yt-0003Jp-Fv for emacs-orgmode@gnu.org; Sun, 16 Nov 2014 18:11:43 -0500 In-Reply-To: <20141116235825.420fe95a@linux-w3xx> (Detlef Steuer's message of "Sun, 16 Nov 2014 23:58:25 +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: Detlef Steuer Cc: emacs-orgmode@gnu.org Hello, Detlef Steuer writes: > But there was a new Problem: A new set of UIDs got created when I edited > my test data. (removed the SCHEDLULED key-word) > > --- Before (result of first test export) > > * APPT Test1 > SCHEDULED: <2014-11-12 Mi 19:00-20:00> > :PROPERTIES: > :ID: dc432cb8-ab29-4bf0-8ea0-e40ca8e8850d > :END: [...] > removed SCHEDULED A properties drawer needs to be the second element in the entry, planning info being the first, or the first one if there is no planning info. If you remove "SCHEDULED:", you also remove planning info only to leave a plain timestamp (in a paragraph, but that doesn't matter here). The properties drawer is no longer correctly located in your entry: it becomes a regular drawer named "PROPERTIES". As a consequence, ox-icalendar can no longer recognize entry's ID and creates a new one, correctly located this time, before next export: > --- After > > * APPT Test1 > :PROPERTIES: > :ID: 867c4f4e-9c7f-4d39-9404-f9dadb25edd9 > :END: > <2014-11-12 Mi 19:00-20:00> > :PROPERTIES: > :ID: dc432cb8-ab29-4bf0-8ea0-e40ca8e8850d > :END: Long story short: if you remove "SCHEDULED:", also move the timestamp /after/ the drawer. Regards, -- Nicolas Goaziou