Re: [O] how to turn off UID-creation for non-exported ical items?

2014-10-31 Thread Nicolas Goaziou
Hello,

Kevin Brubeck Unhammer unham...@fsfe.org writes:

 Before upgrading to Emacs 24.4, I used org-caldav to sync my agenda with
 OwnCloud. This of course requires stable UID's on the exported items, so
 I have

 (setq org-icalendar-store-UID t)

 Items which are not exported don't need UID's, and didn't seem to get
 them before. But after upgrading, suddenly all my org entries get UID's,
 which is very annoying. Is there a way to avoid UID's on non-exported
 items?

No there isn't. Finding (reliably) non-exported items is not easy.

If you find ID everywhere annoying, I suggest to set
`org-icalendar-store-UID' to nil and add ID yourself, piece wise.


Regards,

-- 
Nicolas Goaziou



[O] how to turn off UID-creation for non-exported ical items?

2014-10-30 Thread Kevin Brubeck Unhammer
Before upgrading to Emacs 24.4, I used org-caldav to sync my agenda with
OwnCloud. This of course requires stable UID's on the exported items, so
I have

(setq org-icalendar-store-UID t)

Items which are not exported don't need UID's, and didn't seem to get
them before. But after upgrading, suddenly all my org entries get UID's,
which is very annoying. Is there a way to avoid UID's on non-exported
items?

I figured maybe org-icalendar-create-uid could check if
(org-element-property :deadline entry) or (org-element-property
:scheduled entry), but then I noticed there's no property for entries
such as


** Thing happens
   2014-10-10 fr. 20:00

so maybe to be sure only to-be-exported items get UID's, the creation
has to happen in org-export-data (after
org-export--populate-ignore-list), but at that point I'm not sure the
org-file can be safely altered. Does anyone have an idea how to fix
this?


-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C


signature.asc
Description: PGP signature