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 19:31:06 +0100 Message-ID: References: <15490.1263652716@cpc1-cmbg14-2-0-cust6.5-4.cable.virginmedia.com> <8420.1264692161@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 1NadXC-0006Mk-Ko for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NadX7-0006Jp-C1 for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:21 -0500 Received: from [199.232.76.173] (port=41602 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NadX7-0006Jk-7E for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:17 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:48641) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NadX6-00062E-BB for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 18:12:16 -0500 Received: by mail-ew0-f224.google.com with SMTP id 24so1354905ewy.26 for ; Thu, 28 Jan 2010 15:12:16 -0800 (PST) In-Reply-To: <8420.1264692161@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 On Jan 28, 2010, at 4:22 PM, Stephen Eglen wrote: > 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. Thanks! > > 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 do not understand this. Included where? How? Can you please describe this more extensively? Thanks - Carsten > 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 - Carsten