emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer Thiel <r.thiel@uni-jena.de>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Fwd: solved: how to exclude several single dates from a diary block (was: how to exclude several single dates from a diary block)
Date: Sun, 24 Apr 2022 17:12:03 +0200	[thread overview]
Message-ID: <CADqAsT=Q9+gR-1Y2q4Qh+Xmt0QKzoXjkSucdA0YKkTka5hOWUQ@mail.gmail.com> (raw)
In-Reply-To: <CADqAsTkg8skMOUOaoLt7DZHtbxQurFm4J49QB6Qw59Ya8rTTyw@mail.gmail.com>

Thank you very much, indeed, Ihor.  diary-date was exactly the
function I was looking for.

Please allow me to report that in the meantime I have found a method
that seems to suit my personal needs even better.  You can use

<%%(org-class 2022 04 11 2022 07 15 4 21 26)>

to set every Thursday (4) in the time range between April 11th, 2022
and July 15th, 2022, but exclude (the Thursdays in) ISO weeks 21 and
26 (ie, 2022-05-26 and 2022-06-30).  Less to type and easier to do if
your calendar carries ISO-week numbers.

Many thanks again for the help

Rainer

Am So., 24. Apr. 2022 um 09:59 Uhr schrieb Ihor Radchenko <yantar92@gmail.com>:
>
> 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



--
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de


-- 
Prof. Dr. Rainer Thiel
Institut für Altertumswissenschaften
07737 Jena, Germany (EU)
r.thiel@uni-jena.de


      parent reply	other threads:[~2022-04-24 15:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-22 14:15 how to exclude several single dates from a diary block Rainer Thiel
2022-04-22 14:23 ` Eric S Fraga
2022-04-22 15:24   ` Rainer Thiel
2022-04-24  8:00 ` Ihor Radchenko
     [not found]   ` <CADqAsTkg8skMOUOaoLt7DZHtbxQurFm4J49QB6Qw59Ya8rTTyw@mail.gmail.com>
2022-04-24 15:12     ` Rainer Thiel [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='CADqAsT=Q9+gR-1Y2q4Qh+Xmt0QKzoXjkSucdA0YKkTka5hOWUQ@mail.gmail.com' \
    --to=r.thiel@uni-jena.de \
    --cc=emacs-orgmode@gnu.org \
    /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).