* Exporting diary-sexps into icalendar file
@ 2022-10-23 17:39 Stephen Eglen
2022-10-25 5:59 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Eglen @ 2022-10-23 17:39 UTC (permalink / raw)
To: emacs-orgmode
hi,
I have a simple file, notes.org, with the following content. (This is
the example from the org mode manual).
----------------------------------------------------------------------
* 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
<%%(diary-float t 4 2)>
----------------------------------------------------------------------
and this entry then appears once/month in the org agenda, as expected.
However, when I export to ics, the notes.ics file is effectively empty:
----------------------------------------------------------------------
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:notes
PRODID:-//Stephen Eglen//Emacs with Org mode//EN
X-WR-TIMEZONE:BST
X-WR-CALDESC:
CALSCALE:GREGORIAN
END:VCALENDAR
----------------------------------------------------------------------
I have org-icalendar-include-sexps set to t
Any clues what could be going wrong?
Stephen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Exporting diary-sexps into icalendar file
2022-10-23 17:39 Exporting diary-sexps into icalendar file Stephen Eglen
@ 2022-10-25 5:59 ` Ihor Radchenko
0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2022-10-25 5:59 UTC (permalink / raw)
To: Stephen Eglen; +Cc: emacs-orgmode
Stephen Eglen <sje30@cam.ac.uk> writes:
> I have a simple file, notes.org, with the following content. (This is
> the example from the org mode manual).
>
> ----------------------------------------------------------------------
> * 22:00-23:00 The nerd meeting on every 2nd Thursday of the month
> <%%(diary-float t 4 2)>
> ----------------------------------------------------------------------
>
> and this entry then appears once/month in the org agenda, as expected.
> However, when I export to ics, the notes.ics file is effectively empty:
>
> ----------------------------------------------------------------------
> BEGIN:VCALENDAR
> VERSION:2.0
> X-WR-CALNAME:notes
> PRODID:-//Stephen Eglen//Emacs with Org mode//EN
> X-WR-TIMEZONE:BST
> X-WR-CALDESC:
> CALSCALE:GREGORIAN
> END:VCALENDAR
>
> ----------------------------------------------------------------------
>
> I have org-icalendar-include-sexps set to t
>
> Any clues what could be going wrong?
org-icalendar-include-sexps only considers sexp entries, not diary-style
timestamps.
Also, org-icalendar-with-timestamps does not include diary-style
timestamps by default. Only normal active timestamps.
You can try to customize org-icalendar-with-timestamps to t.
--
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-25 6:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-23 17:39 Exporting diary-sexps into icalendar file Stephen Eglen
2022-10-25 5:59 ` Ihor Radchenko
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).