[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's the proper way to define a recurring event
From: |
Michael Heerdegen |
Subject: |
Re: What's the proper way to define a recurring event |
Date: |
Tue, 17 Dec 2024 18:21:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Renaud Bussières via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:
> <2024-10-07 Mon 16:00-17:30 +1w>--<2024-11-25 Mon>
>
> Then the event will appear in the agenda every day between 2024-10-07
> and 2024-11-25, that's not right. It seems like time/date ranges do
> not respect repeaters.
I can't estimate whether the syntax of org time specs could or should be
extended like that. But as a workaround - or even as equally good
alternative - you can use diary sexps, which are able to express any
possible conditions.
For me (I am using calendar-set-date-style --> european with day and
month positions switched) your example would look like
** 16:00-17:30 Yoga
%%(and (diary-cyclic 7 7 10 2024)
(diary-block 7 10 2024 25 11 2024)
"16:00-17:30 Yoga Class")
Note: the entry name is taken from the return value of the expression,
the actual entry name is ignored, at least for the agenda.
Michael.