From: Ihor Radchenko <yantar92@posteo.net>
To: Stephen Eglen <sje30@cam.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting diary-sexps into icalendar file
Date: Tue, 25 Oct 2022 05:59:52 +0000 [thread overview]
Message-ID: <8735bcv3xj.fsf@localhost> (raw)
In-Reply-To: <m2tu3uigi7.fsf@blur.lan>
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>
prev parent reply other threads:[~2022-10-25 6:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-23 17:39 Exporting diary-sexps into icalendar file Stephen Eglen
2022-10-25 5:59 ` Ihor Radchenko [this message]
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=8735bcv3xj.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=sje30@cam.ac.uk \
/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).