From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz_Stelmach?= Subject: n-times event Date: Thu, 18 Feb 2010 13:13:53 +0100 Message-ID: <878waqzqpq.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni5H0-0006Fh-Ho for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 07:14:26 -0500 Received: from [140.186.70.92] (port=52567 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni5Gy-0006FZ-R4 for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 07:14:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni5Gx-0000dQ-UZ for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 07:14:24 -0500 Received: from lo.gmane.org ([80.91.229.12]:39061) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni5Gx-0000dM-NJ for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 07:14:23 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ni5Gs-00037Q-Sn for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 13:14:18 +0100 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Feb 2010 13:14:18 +0100 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 18 Feb 2010 13:14:18 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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