emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] n-times event


From: Łukasz Stelmach
Subject: [Orgmode] n-times event
Date: Thu, 18 Feb 2010 13:13:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hello.

I am wondering what sexp to write to display an event n times. Let's say
there is a course at a university which comprises 4 meetings. So I chose
diary-block (in fact a starting date would suffice) and some other
conditions like calendar-day-of-week and the number of repetitions, and
probably some holidays. For example

  (and
   (= 1 (calendar-day-of-week date)) ; on Mondays
   (not (diary-date 2010 4 26))      ; but not April 26th
   (not (wut-diary-holidays-2010s))  ; and not during holidays
   (diary-block 2010 2 22 2010 5 10) ; beetween 2010-02-22 and 2010-05-10
  )

With this one I had do calculate the diary-block boundaries. Instead I'd
like to have something like 

  (repeat-n-times-from 10 2010 2 22)

to obtain the same result (with the same constraints). There might be a
diary-block to describe the whole semester. Of course if I change the
weekday constraint to

  (or
    (= 1 (calendar-day-of-week date))
    (= 3 (calendar-day-of-week date)))

the meetings would stop earlier.

-- 
Miłego dnia,
Łukasz Stelmach





reply via email to

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