Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-13 Thread Vincent Beffara
Hi, Agreed ... I believe the only problem will occur when one of a multiply occurring event is edited / deleted on the cal side. I have nothing more constructive to propose than just "don't do that" ... My use-case is just as a way to push org changes to cal and nothing more, and for bidirectio

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-12 Thread David Engster
Vincent Beffara writes: > In the meantime I also tweaked the way org-caldav manages UIDs to > exploit the fact that multiply occurring events are now exported > multiple times in ox-icalendar, everything works out well if only > org->ical is used. One thing remaining, on ical->org sync, there is an

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-12 Thread Vincent Beffara
Hi, Yes, I had the very same problem, I had to restart org-caldav from scratch a few times (org-caldav-delete-everything, wait a bit for caches to empty, and then eventually it worked). In the meantime I also tweaked the way org-caldav manages UIDs to exploit the fact that multiply occurring

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-12 Thread Julien Cubizolles
Vincent Beffara writes: > ... sorry for replying to myself like this - here is a patch that seems to > work: I'm still running into problems even with this patch, but I'm not very sure where they lie. Basically I get some messages about duplicate entries, no org-caldav-results buffer pops up

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Vincent Beffara
... 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

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Vincent Beffara
> 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 majoratio

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Vincent Beffara
It doesn't crash anymore, thanks! OTOH when I ran org-caldav, it removed everything from the online calendar, and it won't put anything back there ... -- Vincent Beffara On Thursday, March 7, 2013 at 13:56 , Nicolas Goaziou wrote: > Vincent Beffara mailto:vbeff...@ens-lyon.fr)> writes: > >

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Nicolas Goaziou
Vincent Beffara 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-

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Vincent Beffara
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") without or

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Nicolas Goaziou
Hello, Vincent Beffara writes: > Same here. But the error is not in org-caldav, because it is triggered like > this: > > (org-icalendar--combine-files nil "~/Desktop/ECM.org") > > where ~/Desktop/ECM.org is a file with nothing but one headline. I cannot reproduce it. Maybe a larger backtrace w

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Vincent Beffara
Hi, Same here. But the error is not in org-caldav, because it is triggered like this: (org-icalendar--combine-files nil "~/Desktop/ECM.org") where ~/Desktop/ECM.org is a file with nothing but one headline. /v -- Vincent Beffara On Thursday, March 7, 2013 at 10:13 , Julien Cubizolles wrot

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-07 Thread Julien Cubizolles
David Engster writes: > Thanks. I've now pushed a further fix which should hopefully make things > work with the new exporter. Julien, please let me know if it works. Sorry, it doesn't. I get the following when running org-caldav with the latest org-mode and org-caldav from git. --8<-

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread David Engster
Nicolas Goaziou writes: > David Engster writes: > >> After skimming through the new exporter, it also seems that >> org-combined-agenda-icalendar-file was replaced with >> org-icalendar-combined-agenda-file. Is that correct? >> >> I'm also using org-icalendar-timezone, org-icalendar-store-UID, and

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread Nicolas Goaziou
David Engster writes: > After skimming through the new exporter, it also seems that > org-combined-agenda-icalendar-file was replaced with > org-icalendar-combined-agenda-file. Is that correct? > > I'm also using org-icalendar-timezone, org-icalendar-store-UID, and > org-icalendar-date-time-forma

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread David Engster
Julien Cubizolles writes: > David Engster writes: >> No, it's not defined in ox-icalendar. I guess it must be generated by >> the new exporter first, probably through some additional require. > > I have the following definition in ox-icalendar.el. > > (defgroup org-export-icalendar nil > "Optio

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread David Engster
Nicolas Goaziou writes: > David Engster writes: > >>> What do you need from org-icalendar.el? >> >> Only org-export-icalendar. As long as that one is producing the same >> output, everything should be fine. > > Unfortunately, there is no `org-export-icalendar' anymore. > > There is: > > (org-ica

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread Julien Cubizolles
David Engster writes: > Julien Cubizolles writes: >> David Engster writes: >>> I just pushed a change which should fix this (if the new exporter is >>> compatible; >> >> It doesn't seem to be, I get >> >> apply: Symbol's function definition is void: org-export-icalendar >> >> when running org-

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread Nicolas Goaziou
David Engster writes: >> What do you need from org-icalendar.el? > > Only org-export-icalendar. As long as that one is producing the same > output, everything should be fine. Unfortunately, there is no `org-export-icalendar' anymore. There is: (org-icalendar--combine-files nil FILES) which

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread David Engster
Julien Cubizolles writes: > David Engster writes: >> I just pushed a change which should fix this (if the new exporter is >> compatible; > > It doesn't seem to be, I get > > apply: Symbol's function definition is void: org-export-icalendar > > when running org-caldav-sync, which is weird since o

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread Julien Cubizolles
David Engster writes: > I just pushed a change which should fix this (if the new exporter is > compatible; It doesn't seem to be, I get --8<---cut here---start->8--- apply: Symbol's function definition is void: org-export-icalendar --8<---cut h

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread David Engster
Nicolas Goaziou writes: > Hello, > > David Engster writes: > >> Julien Cubizolles writes: >>> Bastien writes: >>> Achim Gratz writes: > I hope to put this together in the next week or > so, then it will be possible to nuke all traces fr4om an old Org and > then start from a

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread Nicolas Goaziou
Hello, David Engster writes: > Julien Cubizolles writes: >> Bastien writes: >> >>> Achim Gratz writes: >>> I hope to put this together in the next week or so, then it will be possible to nuke all traces fr4om an old Org and then start from a clean slate with a new Org installati

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread David Engster
Julien Cubizolles writes: > Bastien writes: > >> Achim Gratz writes: >> >>> I hope to put this together in the next week or >>> so, then it will be possible to nuke all traces fr4om an old Org and >>> then start from a clean slate with a new Org installation. >> >> Okay, thanks. Let us know how

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-06 Thread Julien Cubizolles
Bastien writes: > Achim Gratz writes: > >> I hope to put this together in the next week or >> so, then it will be possible to nuke all traces fr4om an old Org and >> then start from a clean slate with a new Org installation. > > Okay, thanks. Let us know how it goes, What temporary (as in ever

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-04 Thread Torsten Wagner
Hi David, Well it would be a temporary solution for two reasons. 1. New emacs releases would come with the new org-files. 2. All third-party code might by time move to the new files. Thus, I thought this is a (maybe on a long perspective) temporary solution. Other non-unix like OSes: In that case

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-03 Thread David Engster
Torsten Wagner writes: > I didn't follow this thread in detail. But shouldn't it be enough to symlink > e.g. org-icalendar against ox-icalendar. As far as I understood emacs would > prioritize those local symlinks over the system wide installation. This would > be a temporary solution until a new e

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-03 Thread Torsten Wagner
Hi Bastien, I didn't follow this thread in detail. But shouldn't it be enough to symlink e.g. org-icalendar against ox-icalendar. As far as I understood emacs would prioritize those local symlinks over the system wide installation. This would be a temporary solution until a new emacs release

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-02 Thread Bastien
Achim Gratz writes: > I hope to put this together in the next week or > so, then it will be possible to nuke all traces fr4om an old Org and > then start from a clean slate with a new Org installation. Okay, thanks. Let us know how it goes, -- Bastien

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-02 Thread Achim Gratz
Bastien writes: > It seems the ox- prefix is a bad idea, you're right. > I'll think about it again. Please, no. The prefix is good, you would just need to obsolete all previously exported interfaces (autoloads and defcustoms) to this code to either give a warning or silently "do the right thing"

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-02 Thread Bastien
Hi David, David Engster writes: > Did you actually try that? How should Emacs possibly know that the file > ox-icalendar provides the feature org-icalendar? This will only work if > ox-icalendar is already loaded. Of course, you're right. I reverted the commit. So the problems stay. For thir

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-02 Thread David Engster
Bastien writes: > Hi David, > > David Engster writes: > >> (eval-after-load "org-icalendar" >> '(error "The old org-icalendar exporter is deprecated; use >> ox-icalendar instead.")) > > I'm not sure about this one: where are you suggesting to add this? > In org.el? Your call. Anywhere where it'

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-02 Thread David Engster
Bastien writes: > Hi David, > > David Engster writes: > >> The most serious issue is that things will often seem to work because >> old exporters are pulled in from Emacs, possibly *very* old >> exporters. > > I've added (provide 'org-icalendar) to ox-icalendar.el so that > a user will load the co

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-02 Thread Bastien
Hi David, David Engster writes: > (eval-after-load "org-icalendar" > '(error "The old org-icalendar exporter is deprecated; use ox-icalendar > instead.")) I'm not sure about this one: where are you suggesting to add this? In org.el? Will the users get the warning if org-icalendar.el has bee

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-03-02 Thread Bastien
Hi David, David Engster writes: > The most serious issue is that things will often seem to work because > old exporters are pulled in from Emacs, possibly *very* old > exporters. I've added (provide 'org-icalendar) to ox-icalendar.el so that a user will load the correct file instead of the old

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-28 Thread Achim Gratz
David Engster writes: > You mean this cus-load thingie? CEDET is actually excluded from that, so > we don't have to deal with it. But wouldn't it be enough to remove all > properties beginning with 'org-' from custom-loads? First you have to find all symbols, then remove the property and then ther

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-28 Thread David Engster
Achim Gratz writes: > David Engster writes: >> An alternative would be to remove the bundled Org from load-path when a >> newer version is loaded. We do that with CEDET, but it is difficult to >> do right (because of autoloading, for instance), so I think the >> eval-after-load hack is better. > >

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-28 Thread Achim Gratz
David Engster writes: > An alternative would be to remove the bundled Org from load-path when a > newer version is loaded. We do that with CEDET, but it is difficult to > do right (because of autoloading, for instance), so I think the > eval-after-load hack is better. That part is actually relativ

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-28 Thread David Engster
Bastien writes: > David Engster writes: > >> Of course I can fix this. But I hope you realize that any third-party >> code out there that requires an exporter will load the old one from >> Emacs proper. > > Yes, I'm well aware of this. The change now lives in the master > branch, and will happen

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-27 Thread Bastien
Hi David, David Engster writes: > Of course I can fix this. But I hope you realize that any third-party > code out there that requires an exporter will load the old one from > Emacs proper. Yes, I'm well aware of this. The change now lives in the master branch, and will happen when we release

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-27 Thread David Engster
Bastien writes: > Hi David, > > David Engster writes: > >> org-caldav does not call this function. It however requires >> org-icalendar, and that was renamed to ox-icalendar in org git. So I >> guess it pulls org-icalendar from the Org that is included with Emacs, >> which calls the obsoleted func

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-27 Thread Bastien
Hi David, David Engster writes: > org-caldav does not call this function. It however requires > org-icalendar, and that was renamed to ox-icalendar in org git. So I > guess it pulls org-icalendar from the Org that is included with Emacs, > which calls the obsoleted function. Can you fix this by

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-27 Thread David Engster
Bastien writes: > Hi Julien, > > Julien Cubizolles writes: > >> As of today, org-cadav-syn fails with >> >> org-export-icalendar: Symbol's function definition is void: >> org-prepare-agenda-buffers >> >> Actually, I can't find this function but org-agenda-prepare-buffers >> exist. Are there two di

Re: [O] org-caldav can't find org-prepare-agenda-buffers

2013-02-27 Thread Bastien
Hi Julien, Julien Cubizolles writes: > As of today, org-cadav-syn fails with > > org-export-icalendar: Symbol's function definition is void: > org-prepare-agenda-buffers > > Actually, I can't find this function but org-agenda-prepare-buffers > exist. Are there two different functions or is ther

[O] org-caldav can't find org-prepare-agenda-buffers

2013-02-27 Thread Julien Cubizolles
As of today, org-cadav-syn fails with --8<---cut here---start->8--- org-export-icalendar: Symbol's function definition is void: org-prepare-agenda-buffers --8<---cut here---end--->8--- Actually, I can't find this function bu