From: Vincent Beffara <vbeffara@ens-lyon.fr>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org, Julien Cubizolles <j.cubizolles@free.fr>
Subject: Re: org-caldav can't find org-prepare-agenda-buffers
Date: Thu, 7 Mar 2013 14:41:58 +0100 [thread overview]
Message-ID: <37E4F6B4499C4973BC5FFEB4FDF45533@gmail.com> (raw)
In-Reply-To: <63701794CC0B434FA2BFE0233C420D45@gmail.com>
... 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 <vbeffara@ens-lyon.fr (mailto:vbeffara@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
> >
>
next prev parent reply other threads:[~2013-03-07 13:42 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-27 10:34 org-caldav can't find org-prepare-agenda-buffers Julien Cubizolles
2013-02-27 14:12 ` Bastien
2013-02-27 19:18 ` David Engster
2013-02-27 22:30 ` Bastien
2013-02-28 6:57 ` David Engster
2013-02-28 7:38 ` Bastien
2013-02-28 16:17 ` David Engster
2013-02-28 18:25 ` Achim Gratz
2013-02-28 19:13 ` David Engster
2013-02-28 19:32 ` Achim Gratz
2013-03-02 11:17 ` Bastien
2013-03-02 13:26 ` David Engster
2013-03-02 17:18 ` Bastien
2013-03-02 20:17 ` Torsten Wagner
2013-03-03 12:26 ` David Engster
2013-03-04 10:46 ` Torsten Wagner
2013-03-02 22:19 ` Achim Gratz
2013-03-03 6:25 ` Bastien
2013-03-06 14:57 ` Julien Cubizolles
2013-03-06 16:15 ` David Engster
2013-03-06 16:24 ` Nicolas Goaziou
2013-03-06 16:43 ` David Engster
2013-03-06 17:08 ` Nicolas Goaziou
2013-03-06 17:22 ` David Engster
2013-03-06 17:32 ` Nicolas Goaziou
2013-03-06 21:24 ` David Engster
2013-03-07 9:13 ` Julien Cubizolles
2013-03-07 10:06 ` Vincent Beffara
2013-03-07 10:54 ` Nicolas Goaziou
2013-03-07 11:17 ` Vincent Beffara
2013-03-07 12:56 ` Nicolas Goaziou
2013-03-07 13:21 ` Vincent Beffara
2013-03-07 13:31 ` Vincent Beffara
2013-03-07 13:41 ` Vincent Beffara [this message]
2013-03-12 6:21 ` Julien Cubizolles
2013-03-12 10:18 ` Vincent Beffara
2013-03-12 20:31 ` David Engster
2013-03-14 0:05 ` Vincent Beffara
2013-03-06 16:51 ` Julien Cubizolles
2013-03-06 17:08 ` David Engster
2013-03-06 17:18 ` Julien Cubizolles
2013-03-06 18:35 ` David Engster
2013-03-02 11:19 ` Bastien
2013-03-02 13:33 ` David Engster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37E4F6B4499C4973BC5FFEB4FDF45533@gmail.com \
--to=vbeffara@ens-lyon.fr \
--cc=emacs-orgmode@gnu.org \
--cc=j.cubizolles@free.fr \
--cc=n.goaziou@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).