From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: [bug] org-agenda-write does not handle date stamps without day of week Date: Fri, 16 Mar 2012 19:53:07 +0100 Message-ID: <2012-03-16T19-40-36@devnull.Karl-Voit.at> References: <2012-03-05T15-36-35@devnull.Karl-Voit.at> <2012-03-16T17-12-15@devnull.Karl-Voit.at> <5033.1331920331@alphaville> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8cHG-0004E7-A8 for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 14:53:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8cHE-0004y2-C9 for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 14:53:25 -0400 Received: from plane.gmane.org ([80.91.229.3]:38112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8cHE-0004xo-5F for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 14:53:24 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S8cHB-0007Dr-3l for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 19:53:21 +0100 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Mar 2012 19:53:21 +0100 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Mar 2012 19:53:21 +0100 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: emacs-orgmode@gnu.org * Nick Dokos wrote: > Karl Voit wrote: > > For me, it was a "no time to work on org - stash it"... OK. I just wanted to make sure that it *is* on someone's todo list :-) >> * Karl Voit wrote: >> > >> > * <2012-03-05 08:00-09:00> Wrong: ends up as full day event > > org-agenda-write calls org-export-icalendar which calls org-print-icalendar-entries > which loops over all the entries and parses them, decomposing them into timestamps. > Each timestamp is then passed to org-parse-time-string. It's this one that cannot > handle non-standard formats: it uses a regexp and assumes that all the matched parts > are going to be in fixed places: > > As to how to fix it, there are several possibilities: > > 1. fix your scripts that produce time stamps to include day-of-week. Sorry, deriving DOW from an arbitrary timestamps from arbitrary data sources is either pretty time consuming (calendar calculations) or simply hard to calculate. Outside Org-mode, DOW is seldom part of time-stamp data :-( > 2. change the callers of org-parse-time-string to make sure that DOW is included. > There are roughly three dozen callers, so 2. is possible but a pain. Ack. > 3. change just one caller: org-print-icalendar-entries to make sure that DOW is included. > 3. is simple but ugly as sin, Ouch, ack :-) > 4. change org-parse-time-string to handle a missing DOW. > 4. is the best way to handle it within org. Full ack. > I vote for 1. where *you* have to do all the work ;-) YMMD :-) If my brain would be compatible to ELISP, I'd send a patch. Promised. But I'll take my chance and wait for someone else (you?) implementing 4. to resolve this issue for everybody. I really appreciate every second you guys invest in maintaining Org-mode! -- Karl Voit