help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sexp and icalendar-export-file


From: Michael Heerdegen
Subject: Re: sexp and icalendar-export-file
Date: Mon, 24 May 2021 12:52:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Andreas Gösele <goesele@hfph.mwn.de> writes:

> ** 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.

I can only answer that org related part of the question: if you want to
let special diary entries appear in the agenda, these _must_ evaluate to
a string (or nil), and that string will be used as headline displayed in
the agenda.  The given headline is silently ignored, AFAIK.  The
advantage is that you can generate headlines dynamically in the diary
sexp.

Org could be smarter and use the given static headline when the diary
sexp returns a non-nil value that is not a string, but that isn't the
case, unfortunately.

I only know that because I asked the question in the org mailing list,
some months ago.  You might look there for the answers I got for more
background.

I dunno whether this also effects icalendar export.


Regards,

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]