emacs-orgmode
[Top][All Lists]
Advanced

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

Re: how to exclude several single dates from a diary block


From: Ihor Radchenko
Subject: Re: how to exclude several single dates from a diary block
Date: Sun, 24 Apr 2022 16:00:29 +0800

Rainer Thiel <r.thiel@uni-jena.de> writes:

> I use Org-Mode to schedule most everything, including my lectures
> which typically are recurring events.  I have learnt that I can
> exclude a certain range of days or weeks where no lectures take place.
> For this, I use:
>
> * TODO 12:15--13:45 Lecture: Aristotle
> <%%(unless (diary-block 12 20 2021 12 31 2021) (and (= 3
> (calendar-day-of-week date)) (diary-block 10 18 2021 02 11 2022)))>
>
> What I need to do for this year is to exclude single dates such as
> April 26th, 2022 and June 21st, 2022.  Can someone please help me how
> to achieve this?

You can just change
<%%(unless (diary-block 12 20 2021 12 31 2021) ...)>
to
<%%(unless (or (diary-date 04 26 2022) (diary-date 06 21 2022) (diary-block 12 
20 2021 12 31 2021)) ...)>

Best,
ihor



reply via email to

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