From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: icalender export: limited number of repeated events Date: Mon, 16 Jun 2008 17:57:26 +0200 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8HMV-0004SL-4s for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:15:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8HMT-0004RV-FW for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:15:17 -0400 Received: from [199.232.76.173] (port=51197 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8HMT-0004RK-9c for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:15:17 -0400 Received: from ug-out-1314.google.com ([66.249.92.172]:33475) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8HMT-0000mS-4D for emacs-orgmode@gnu.org; Mon, 16 Jun 2008 12:15:17 -0400 Received: by ug-out-1314.google.com with SMTP id l31so416975ugc.48 for ; Mon, 16 Jun 2008 09:15:15 -0700 (PDT) In-Reply-To: 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: knubee Cc: emacs-orgmode@gnu.org Hi, On Jun 16, 2008, at 11:07 AM, knubee wrote: > I need to share some of my calendar data with co-workers. One of > the biggest limitations I encounter with emacs/icalender is that > it does not seem to support a limited number of repeated events. > > As far as I can tell, the way to specify this is with regular > expressions. Example: > > * TODO Something every Sunday, 10:00-12:00, for 2 months > SCHEDULED: <%%(and (= (calendar-day-of-week date) 7) > (diary-block 1 6 200 31 7 2008)) 10:00-12:00> > > I have not been able to figure out how to export these to an .ics > file. Since iCal interpreters usually do not have access to Emacs lisp, it is obviously impossible that the Emacs icalendar exporter could tranlate sexp diary entries of arbitrary complexity. We can be happy that it does handle the most common ones. However, I did not know that the icalendar format actually supported something like UNTIL in the RRULE line. So maybe we could teach the Org exporter a syntax for this and export it properly. However, I don't have a good idea for a syntax, and not much time to implement it now. One way to hack this yourself would be the following: - Add some UNTIL:20080610 or smilar cookie to the entry, either to the headline or early in the body, so that it will end up in the summary field. Make sure it does end up there, check the raw .ics file that Org is producing. - Use the new org-before-save-iCalendar-file-hook to find these in the iCalendar file and turn them into an UNTIL field in the RRULE line of the entry. - When you are done, share this with us! HTH - Carsten > > > Google calendar, on the other hand, will export something like > the following: > > BEGIN:VEVENT > DTSTART:20080601T100000 > DTEND:20080601T120000 > RRULE:FREQ=DAILY;UNTIL=20080731 > > Has anyone else managed to get a limited number of repeating > tasks/events to export correctly to .ics format? > > thanks. > > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode