From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: icalendar: exporting times of day specified in heading? Date: Thu, 28 Jan 2010 15:17:37 +0100 Message-ID: References: <15490.1263652716@cpc1-cmbg14-2-0-cust6.5-4.cable.virginmedia.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaVBx-0007o9-44 for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 09:17:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaVBs-0007lH-Lh for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 09:17:52 -0500 Received: from [199.232.76.173] (port=59332 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaVBs-0007l5-2L for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 09:17:48 -0500 Received: from mail-fx0-f216.google.com ([209.85.220.216]:53930) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaVBq-0005gF-0u for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 09:17:46 -0500 Received: by fxm8 with SMTP id 8so1075762fxm.26 for ; Thu, 28 Jan 2010 06:17:40 -0800 (PST) In-Reply-To: <15490.1263652716@cpc1-cmbg14-2-0-cust6.5-4.cable.virginmedia.com> 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: Stephen Eglen Cc: emacs-orgmode@gnu.org Hi Stephen, while it might be possible to do what you ask for, I think it is error- prone because people might accidently have something in the headline which looks like a time. I don't mind so much if Org's agenda stumbles over this, but I don't want to produce incorrect icalendar files. Also, this icalendar export function is programmed in a messy way, and I don't see a quick way to fix this. If you can make me a patch, I will take it. - Carsten On Jan 16, 2010, at 3:38 PM, Stephen Eglen wrote: > Hi, > > I often use org-agenda-diary-entry to make simple entries into > an agenda.org file. I see that the agenda is clever enough to > recognise > if a time range has been typed into the heading. However, this time > range is not exported by the icalendar code. > > Here's a simple example, independent of org-agenda-diary-entry, > although > in reality, example 2 would be the type of entry I normally make. > > if I have a test.org file containing: > ---------------------------------------------------------------------- > * <2010-01-16 Sat 08:00-08:30> example 1 > > * <2010-01-16 Sat> example 2 09:00-09:30 > ---------------------------------------------------------------------- > > then when I view the agenda I see: > > Saturday 16 January 2010 > test: 8:00- 8:30 example 1 > 8:00...... ---------------- > test: 9:00- 9:30 example 2 > 10:00...... ---------------- > > [There's an extra space before 'example 2', which I'm not sure about.] > > So far, so good - the agenda has parsed 09:00-09:30 from the headline. > But now if I make an ics file (e.g. by 'C-c C-e i' in test.org) the > start and end time of the event are not recognised. Here's a relevant > snippet from test.ics: > > BEGIN:VCALENDAR > ... > DTSTART:20100116T080000 > DTEND:20100116T083000 > SUMMARY: example 1 > CATEGORIES:test > ... > DTSTART;VALUE=DATE:20100116 > DTEND;VALUE=DATE:20100117 > SUMMARY: example 2 09:00-09:30 > > What I *think* I'd like is that for the 2nd calendar entry is > > DTSTART:20100116T0900 > DTEND:20100116T0930 > > Is that sensible/possible? Alternatively, how about > org-agenda-diary-entry parsing the time specification and writing the > date and time within angle brackets? > > (org-version) > "Org-mode version 6.33trans (release_6.33f.22.gcb8ce.dirty)" > > Thanks, Stephen > > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten