Marcus Zibrowius <marcus.zibrow...@posteo.net> writes: > I have an org-file with entries of the form > > * Abel's birthday party > <2023-11-13> > > and with entries of the form > > * Abel Jacobi > %%(org-anniversary 1978 11 11) Abel %d > > Both types of events show up in my agenda view in emacs. However, when I > export to ics (e.g. org-export-dispatch > [c] Export to icalendar > [f] > Current file), only the former type of entries is included in the > resulting ics-file.
This is because Emacs diary only looks `icalendar-export-sexp-enumeration-days' days ahead from now when exporting non-standard diary sexps. By default, it is 2 weeks. So, you would see the anniversary in icalendar if it were 2 weeks from now. You can increase `icalendar-export-sexp-enumeration-days' to get the anniversary occurrences exported up to that number of days ahead. Also, `org-anniversary' does not support %d. AFAIK, it is only working for built-in sexp types, which are handled specially. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>