From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Beffara Subject: Re: org-caldav can't find org-prepare-agenda-buffers Date: Thu, 7 Mar 2013 14:41:58 +0100 Message-ID: <37E4F6B4499C4973BC5FFEB4FDF45533@gmail.com> References: <87k3puyri0.fsf@free.fr> <878v692ae0.fsf@engster.org> <87621cj3bc.fsf@bzg.ath.cx> <874ngw2z26.fsf@engster.org> <87txoum4pe.fsf@bzg.ath.cx> <87y5e66igm.fsf@engster.org> <87zjyl3ck6.fsf@bzg.ath.cx> <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> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDb5F-00084H-BD for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 08:42:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDb57-0002Jx-1k for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 08:42:09 -0500 Received: from mail-wg0-f49.google.com ([74.125.82.49]:42450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDb56-0002Ja-SU for emacs-orgmode@gnu.org; Thu, 07 Mar 2013 08:42:00 -0500 Received: by mail-wg0-f49.google.com with SMTP id 15so825740wgd.28 for ; Thu, 07 Mar 2013 05:42:00 -0800 (PST) In-Reply-To: <63701794CC0B434FA2BFE0233C420D45@gmail.com> Content-Disposition: inline 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Julien Cubizolles ... sorry for replying to myself like this - here is a patch that seems t= o work: =20 diff --git a/org-caldav.el b/org-caldav.el index 0383366..14cca8f 100644 --- a/org-caldav.el +++ b/org-caldav.el =40=40 -786,7 +786,7 =40=40 is no UID to rewrite. Returns the UID.=22 ((re-search-forward =22=5EUID:=5C=5C(orgsexp-=5B0-9=5D+=5C=5C)=22 nil t) ;; This is a sexp entry, so do nothing. (match-string 1)) - ((re-search-forward =22=5EUID:=5C=5C(=5C=5Cs-*=5C=5C)=5C=5C(=5BA-Z=5D=5B= A-Z=5D-=5C=5C)=3F=5C=5C(.+=5C=5C)=5C=5Cs-*=24=22 + ((re-search-forward =22=5EUID:=5C=5C(=5C=5Cs-*=5C=5C)=5C=5C(=5BA-Z=5D=5B= A-Z=5D=5B0-9=5D=3F-=5C=5C)=3F=5C=5C(.+=5C=5C)=5C=5Cs-*=24=22 nil t) (when (match-string 1) (replace-match =22=22 nil nil nil 1)) I made a pull request to org-caldav, hoping I got it right=21 /v =20 -- =20 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 cal= endar, and it won't put anything back there ... > =20 > =20 > =20 > 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: > =20 > *** Gayet, Damien : Une majoration de l'esp=C3=A9rance des nombres de B= etti > :PROPERTIES: > :ID: BD783419-0D10-4B88-8540-730AC=4603B42E > :END: > =20 > <2013-03-06 Wed 14:00> =20 > =20 > So far so good. But on trying to sync, I get the error that =22Could no= t find UID TS1-BD783419-0D10-4B88-8540-730AC=4603B42E.=22 (Which is the U= ID in the generated ICS file.) So now, iCalendar export works, all that r= emains is fixing the sync code in org-caldav ... > =20 > /v > > =20 > > =20 > > -- =20 > > Vincent Beffara > > =20 > > =20 > > On Thursday, March 7, 2013 at 13:56 , Nicolas Goaziou wrote: > > =20 > > > Vincent Beffara writes: > > > =20 > > > > Here is an ECM.el file, run with emacs -Q triggers the crash: =20 > > > > =20 > > > > (custom-set-variables > > > > '(org-icalendar-store-UID t) > > > > ) > > > > (setq-default debug-on-error t) > > > > (add-to-list 'load-path =22=7E/.emacs.d/el-get/org-mode/lisp=22) > > > > (require 'ox-icalendar) > > > > (org-icalendar--combine-files nil =22=7E/Desktop/ECM.org (http://= ECM.org)=22) > > > > =20 > > > > =20 > > > > without org-icalendar-store-UID it works fine. Not sure the optio= n is > > > > needed anymore, but at least the crash can be reproduced. BTW my > > > > org-mode is at commit 516f0df. > > > =20 > > > =20 > > > =20 > > > =20 > > > =20 > > > =20 > > > =20 > > > The problem should be fixed in master. Could anyone confirm it=3F > > > =20 > > > Thank you for reporting this problem. > > > =20 > > > =20 > > > Regards, > > > =20 > > > -- =20 > > > Nicolas Goaziou > > =20 > =20