emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
To: emacs-orgmode@gnu.org
Subject: n-times event
Date: Thu, 18 Feb 2010 13:13:53 +0100	[thread overview]
Message-ID: <878waqzqpq.fsf@dasa3.iem.pw.edu.pl> (raw)

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	other threads:[~2010-02-18 12:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18 12:13 Łukasz Stelmach [this message]
2010-09-28 14:56 ` n-times event Łukasz Stelmach

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=878waqzqpq.fsf@dasa3.iem.pw.edu.pl \
    --to=lukasz.stelmach@iem.pw.edu.pl \
    --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).