... sorry for replying to myself like this - here is a patch that seems to work:
diff --git a/org-caldav.el b/org-caldav.el index 0383366..14cca8f 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)) I made a pull request to org-caldav, hoping I got it right! /v -- Vincent Beffara On Thursday, March 7, 2013 at 14:31 , Vincent Beffara wrote: > > OTOH when I ran org-caldav, it removed everything from the online calendar, > > and it won't put anything back there ... > > > > Mmmkay, something weird is happening. I create a headline with a date, and > call org-caldav. An UID is created, and the file looks like this: > > *** Gayet, Damien : Une majoration de l'espérance des nombres de Betti > :PROPERTIES: > :ID: BD783419-0D10-4B88-8540-730ACF03B42E > :END: > > <2013-03-06 Wed 14:00> > > So far so good. But on trying to sync, I get the error that "Could not find > UID TS1-BD783419-0D10-4B88-8540-730ACF03B42E." (Which is the UID in the > generated ICS file.) So now, iCalendar export works, all that remains is > fixing the sync code in org-caldav ... > > /v > > > > > > -- > > Vincent Beffara > > > > > > On Thursday, March 7, 2013 at 13:56 , Nicolas Goaziou wrote: > > > > > Vincent Beffara <vbeff...@ens-lyon.fr (mailto:vbeff...@ens-lyon.fr)> > > > writes: > > > > > > > Here is an ECM.el file, run with emacs -Q triggers the crash: > > > > > > > > (custom-set-variables > > > > '(org-icalendar-store-UID t) > > > > ) > > > > (setq-default debug-on-error t) > > > > (add-to-list 'load-path "~/.emacs.d/el-get/org-mode/lisp") > > > > (require 'ox-icalendar) > > > > (org-icalendar--combine-files nil "~/Desktop/ECM.org (http://ECM.org)") > > > > > > > > > > > > without org-icalendar-store-UID it works fine. Not sure the option is > > > > needed anymore, but at least the crash can be reproduced. BTW my > > > > org-mode is at commit 516f0df. > > > > > > > > > > > > > > > > > > > > > > > > The problem should be fixed in master. Could anyone confirm it? > > > > > > Thank you for reporting this problem. > > > > > > > > > Regards, > > > > > > -- > > > Nicolas Goaziou > > >