From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-caldav: Syncing Error: Could not find UID... Date: Tue, 10 Dec 2013 12:55:51 +0000 Message-ID: <878uvs6f1k.fsf@ucl.ac.uk> References: <3zob4umb2o.fsf@mourningsun.net> <20131210110123.3a570d6f@gaia.unibw-hamburg.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqMtI-0007kr-U2 for emacs-orgmode@gnu.org; Tue, 10 Dec 2013 07:58:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqMtA-0003DG-2Y for emacs-orgmode@gnu.org; Tue, 10 Dec 2013 07:58:20 -0500 Received: from ch1outboundsmtppool1.messaging.microsoft.com ([157.55.116.165]:55394 helo=CH1EHSNDR002.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqMt9-0003CZ-U8 for emacs-orgmode@gnu.org; Tue, 10 Dec 2013 07:58:12 -0500 In-Reply-To: <20131210110123.3a570d6f@gaia.unibw-hamburg.de> (Detlef Steuer's message of "Tue, 10 Dec 2013 11:01:23 +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 Detlef Steuer writes: > Hi! > > I spent most of yesterday afternoon on toying with org-caldav. [...] > The third (large) file gives a lot of problems. > > 1. I had the same error message as Daniel. I remember my critical UID > beginning with TS10...., too. Strange. Detlef & Daniel, I remember having to make a change to org-caldav.el to cater for digits after the two capital letters, as in "TS9-...". That change was: --8<---------------cut here---------------start------------->8--- diff --git a/org-caldav.el b/org-caldav.el index 0383366..cd5b273 100644 --- a/org-caldav.el +++ b/org-caldav.el @@ -786,7 +786,7 @@ is no UID to rewrite. Returns the UID." ((re-search-forward "^UID:\\(orgsexp-[0-9]+\\)" nil t) ;; This is a sexp entry, so do nothing. (match-string 1)) - ((re-search-forward "^UID:\\(\\s-*\\)\\([A-Z][A-Z]-\\)?\\(.+\\)\\s-*$" + ((re-search-forward "^UID:\\(\\s-*\\)\\([A-Z][A-Z][0-9]-\\)?\\(.+\\)\\s-*$" nil t) (when (match-string 1) (replace-match "" nil nil nil 1)) --8<---------------cut here---------------end--------------->8--- I believe this change was incorporated into org-caldav.el but I am currently on a system which has not been updated in a while. In any case, I wonder if the change could be: + ((re-search-forward "^UID:\\(\\s-*\\)\\([A-Z][A-Z][0-9]*-\\)?\\(.+\\)\\s-*$" instead, adding a "*" to the digit match to cater for any number of digits after the two capital letters? HTH, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.2.4-322-gece429