From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [bug] org-agenda-write does not handle date stamps without day of week Date: Tue, 20 Mar 2012 09:39:44 -0400 Message-ID: <25881.1332250784@alphaville> References: <2012-03-05T15-36-35@devnull.Karl-Voit.at> <2012-03-16T17-12-15@devnull.Karl-Voit.at> <5033.1331920331@alphaville> <2012-03-16T19-40-36@devnull.Karl-Voit.at> <4859.1331966740@alphaville> <30E4D375-690C-4798-B341-51268082B826@gmail.com> <90243EDA-E2F2-4A70-B446-CB2FFD4AA1CB@gmail.com> <2012-03-20T13-22-33@devnull.Karl-Voit.at> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9zI3-00032D-8y for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 09:39:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9zHw-0005Ek-Jk for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 09:39:54 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:10502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9zHw-0005EV-Co for emacs-orgmode@gnu.org; Tue, 20 Mar 2012 09:39:48 -0400 In-Reply-To: Message from Karl Voit of "Tue, 20 Mar 2012 13:26:36 BST." <2012-03-20T13-22-33@devnull.Karl-Voit.at> 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: news1142@Karl-Voit.at Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Karl Voit wrote: > * Carsten Dominik wrote: > > I have just pushed the new version of this regexp into master. > > Very cool! > > > Karl, let me know if it fixes the issues you where having > > with writing agendas. > > My agenda looks fine. But generating the ics file still results in > events without the time information: > > ,----[ my function generating the ics ] > | (defun vk-export-agenda() > | "Exports monthly Org-mode agenda to agenda.ics file" > | (interactive) > | (org-agenda-list nil nil 60) > | (org-agenda-write "~/share/all/org-mode/agenda.ics") > | ) > `---- > > with: > > ,----[ example events ] > | ** <2012-03-20 8:00-9:30> Test > | :PROPERTIES: > | :CREATED: [2012-03-20 Tue 10:38] > | :END: > | > | ** <2012-03-20 8:12-13:12> Test > | :PROPERTIES: > | :CREATED: [2012-03-20 Tue 10:40] > | :END: > `---- > > results in: > > ,----[ ics result ] > | vk@gary ~all/org-mode (git)-[master] % grep -C 2 Test agenda.ics > | DTSTART;VALUE=DATE:20120320 > | DTEND;VALUE=DATE:20120320 > | SUMMARY: Test > | CATEGORIES:misc > | END:VEVENT > | -- > | DTSTART;VALUE=DATE:20120320 > | DTEND;VALUE=DATE:20120320 > | SUMMARY: Test > | CATEGORIES:misc > | END:VEVENT > | vk@gary ~all/org-mode (git)-[master] % > `---- > I get BEGIN:VEVENT UID: TS-11c60341-06a6-4b6f-bb22-2ccd739bbdc8 DTSTART:20120320T080000 DTEND:20120320T093000 SUMMARY: Test CATEGORIES:foo END:VEVENT BEGIN:VEVENT UID: TS-dc99f34e-e24a-4ecc-add5-fa67649b005e DTSTART:20120320T081200 DTEND:20120320T131200 SUMMARY: Test CATEGORIES:foo END:VEVENT which looks correct to me. Check that you picked up Carsten's fix (commit ): git show 7d84b300f4cba8b726662113d4ce4ff40a76c5b5 If you did M-x org-reload RET only, then that's probably the reason: check to see if the value of org-ts-regexp0 has been updated; in my case it hadn't and I ended up doing M-x load-file RET /path/to/org.el RET. Alternatively, restart emacs. Nick