From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Eglen Subject: Re: icalendar: exporting times of day specified in heading? Date: Thu, 28 Jan 2010 15:22:41 +0000 Message-ID: <8420.1264692161@cpc1-cmbg14-2-0-cust6.5-4.cable.virginmedia.com> References: <15490.1263652716@cpc1-cmbg14-2-0-cust6.5-4.cable.virginmedia.com> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaWCt-0000tF-Rp for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 10:22:56 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaWCo-0000ls-VI for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 10:22:55 -0500 Received: from [199.232.76.173] (port=36515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaWCo-0000lf-Pz for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 10:22:50 -0500 Received: from mx20.gnu.org ([199.232.41.8]:52086) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NaWCk-0001nE-Nh for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 10:22:47 -0500 Received: from ppsw-1.csi.cam.ac.uk ([131.111.8.131]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaWCh-0004S1-TQ for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 10:22:44 -0500 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: Carsten Dominik Cc: emacs-orgmode@gnu.org, Stephen Eglen Hi Carsten, > 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. Thanks for this. I did decide to bite the bullet and look into this. I think I have some working code, modifiying: org-agenda-add-entry-to-org-agenda-diary-file so that it parses out the date at that point, conditional on org-agenda-search-headline-for-time being t. In this way, it doesn't touch the ical export functions. I will double check and submit a patch for consideration. A small note though: along the way, I've sometimes noticed that diary entries are included with a level 2 heading rather than a level 4 heading. I haven't been able to track this down, its just noticeable when I later browse agenda.org *** 2010-02-02 Tuesday **** 15:00-15:30 check me <2010-02-02 Tue> i.e. that 2nd line is sometimes given two heaings, and is not within the right level 3 heading. Anything obvious I might want to look at when debugging? Stephen