[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sexp and icalendar-export-file
From: |
Andreas Gösele |
Subject: |
Re: sexp and icalendar-export-file |
Date: |
Mon, 24 May 2021 00:03:08 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
a follow up to my last post.
I tried whether a detour through org-mode could provide a
solution. Inspired by
https://mattduck.github.io/generic-css/demo/org-demo.html I created an
org file with the following contend:
** Class 8:15am-10:00am
<%%(org-class 2021 1 1 2021 5 30 1 14)> Class
* Weekly meeting with boss
<2021-01-19 Tue 14:00 +1w>
** Class 7:00pm-9:00pm
<%%(and (= 1 (calendar-day-of-week date)) (diary-block 2 16 2021 4 20 2021))>
Executing "org-agenda a" results in an agenda view which includes the
first class entry and the Weekly meeting. The second Class entry doesn't
appear. I don't get any error messages.
When I execute "org-icalendar-export-agenda-files" I get an ics file
with only the Weekly meeting with the boss and an error message in the
*icalendar-errors* buffer:
Error in line 0 -- (end-of-file): ‘%%(and (= 1 (calendar-day-of-week date))
(diary-block 2 16 2021 4 20 2021)) Class 7:00pm-9:00pm’
I also get 14 times the warning:
Error (diary): Bad diary sexp at line 1 in ~/.emacs.d/diary:
(= 1 (calendar-day-of-week date)
Error: (end-of-file)
This is the same kind of warning I get when I try to export my diary
file with corresponding sexps directly. Is
"org-icalendar-export-agenda-files" using or build on
icalendar-export-file?
So, do I conclude correctly, that even using org-mode and its agenda
will not allow me to export more complicated sexps (the second Class one
doesn't even work with agenda views) or an org-class entry to an ics
file?
Thanks a lot
Andreas