emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-caldav: Syncing Error: Could not find UID...


From: Eric S Fraga
Subject: Re: [O] org-caldav: Syncing Error: Could not find UID...
Date: Tue, 10 Dec 2013 12:55:51 +0000
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Detlef Steuer <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]