From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Recurring events with exceptions Date: Tue, 18 Oct 2011 13:26:39 -0400 Message-ID: <5907.1318958799@alphaville.americas.hpqcorp.net> References: <2011-10-18T18-47-42@devnull.Karl-Voit.at> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGE3o-00021a-NY for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 14:06:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGE3n-0001Fe-4E for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 14:06:44 -0400 Received: from g4t0015.houston.hp.com ([15.201.24.18]:9805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGE3m-0001FW-TK for emacs-orgmode@gnu.org; Tue, 18 Oct 2011 14:06:43 -0400 In-Reply-To: Message from Karl Voit of "Tue\, 18 Oct 2011 18\:52\:53 +0200." <2011-10-18T18-47-42@devnull.Karl-Voit.at> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: news1142@Karl-Voit.at Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Karl Voit wrote: > Hi! >=20 > I am into a process to write a convert tool from my old calendar > software[1] to Org-mode. >=20 > Now I do have to define something like =C2=BBthis event is recurring each > week on Wednesday except 2011-10-26 and 2011-11-30=C2=AB. >=20 > I already know that complex things have to be done using sexp > entries[2] but this does not seem to be possible with sexp either. >=20 Why not? All you have to do is explicitly exclude the two dates. Something like this (lightly tested) should work. (NB: Wednesday =3D 3 and calendar/diary wants dates as 3-element lists in the form (month day year)): %%(let ((dayname (calendar-day-of-week date))) (and (=3D dayname 3) (not (calendar-date-equal date '(10 26 2011))) (not (calendar-date-equal date '(11 30 2011))))) I added this to .diary, did M-x calendar RET and marked the entries with m: seems to work fine. Nick > Before I do have to develop a method that generates multiple > distinct events for each recurring definition: is there another way > to achieve this? >=20 > Thanks! >=20 > 1. jPilot/DateBK6/PalmOS > 2. http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-= Entries.html > --=20 > Karl Voit >=20 >=20