From mboxrd@z Thu Jan 1 00:00:00 1970 From: "G. Martin Butz" Subject: ical export: Still trying to clarify strange results Date: Thu, 27 Feb 2014 10:10:14 +0100 Message-ID: <530F00F6.60503@mkblog.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIwz2-0005zP-KQ for emacs-orgmode@gnu.org; Thu, 27 Feb 2014 04:10:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIwyw-0002dF-DH for emacs-orgmode@gnu.org; Thu, 27 Feb 2014 04:10:24 -0500 Received: from vwp11191.webpack.hosteurope.de ([91.250.68.65]:41952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIwyw-0002d8-2K for emacs-orgmode@gnu.org; Thu, 27 Feb 2014 04:10:18 -0500 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: Org Mode List Hi, I am turning again to the list, because after some extensive testing, reading the manual and googeling I am still not able to configurate the ical export the way I expect it to be. Sorry for the long post and sorry for bothering the list again, but I am hoping that someone might be able to help. What I want is: + Export all TODO items with the beginning date set to the scheduled date in org mode. + Export also the deadlines in case of TODO items + If possible: Do not export DONE items at all The resulting ical file I get displays: + For TODO entries DTSTART set to the timestamp an hour later (not to /scheduled/ date) + Deadlined items are included; the deadline is corre, the TODO date also set to the timestamp an hour later + state changes of entries (set to DONE) as DTSTART entry; as these are DONE I expected they would be skiped because of org-icalendar- include-todo set to /t/. Obviously the date in SCHEDULED is not recognized. Did I miss the relevant variable to set (see my configuration below)? I also tried to supress any logging of the change of TODO entries (which would not really solve my problem but seemed to me a way to clear the export from the state changes); in the emacs customization group /org-todo/ it is being said that /org-log-done/ set to /nil/ means "Don't add anything, just change the keyword", which does not work for me. Also the inbuffer setting /#+STARTUP: nologdone/ does not have any effect. This is my testfile to export to ical: --------------------------8<------------------------------------------ #+STARTUP:nologdone * TODO A Scheduled Event SCHEDULED: <2014-03-03 Mo 16:00> :PROPERTIES: :ID: d092bad5-6559-405f-8afd-a9515b372323 :END: * TODO A Scheduled Event with Deadline DEADLINE: <2014-03-13 Do 10:00> SCHEDULED: <2014-03-16 So 15:00> :PROPERTIES: :ID: 53958c17-4a83-4150-8213-895a76bf4db1 :END: * DONE A Scheduled Event Already Done SCHEDULED: <2014-02-24 Mo> - State "DONE" from "TODO" [2014-02-27 Do 09:14] :PROPERTIES: :ID: 745d0dc5-0ebd-40cc-80fd-e06d1170fa44 :END: * DONE Another Scheduled Event Already Done SCHEDULED: <2014-02-07 Fr 15:00> - State "DONE" from "TODO" [2014-02-27 Do 09:21] :PROPERTIES: :ID: 45b90294-7807-4aa0-a5a4-93a285be8624 :END: --------------------------8<------------------------------------------ This is the ical export: --------------------------8<------------------------------------------ BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:test PRODID:-//G. Martin Butz//Emacs with Org mode//EN X-WR-TIMEZONE:CET X-WR-CALDESC:test CALSCALE:GREGORIAN BEGIN:VTODO UID:TODO-d092bad5-6559-405f-8afd-a9515b372323 DTSTAMP:20140227T082604Z DTSTART:20140227T092600 SUMMARY:A Scheduled Event CATEGORIES:TODO SEQUENCE:1 PRIORITY:5 STATUS:NEEDS-ACTION END:VTODO BEGIN:VEVENT DTSTAMP:20140227T082604Z UID:DL-53958c17-4a83-4150-8213-895a76bf4db1 DTSTART:20140313T100000 DTEND:20140313T120000 SUMMARY:DL: A Scheduled Event with Deadline CATEGORIES:TODO END:VEVENT BEGIN:VTODO UID:TODO-53958c17-4a83-4150-8213-895a76bf4db1 DTSTAMP:20140227T082604Z DTSTART:20140227T092600 SUMMARY:A Scheduled Event with Deadline CATEGORIES:TODO SEQUENCE:1 PRIORITY:5 STATUS:NEEDS-ACTION END:VTODO BEGIN:VEVENT DTSTAMP:20140227T082604Z UID:TS1-745d0dc5-0ebd-40cc-80fd-e06d1170fa44 DTSTART:20140227T091400 DTEND:20140227T111400 SUMMARY:A Scheduled Event Already Done CATEGORIES:DONE END:VEVENT BEGIN:VEVENT DTSTAMP:20140227T082604Z UID:TS1-45b90294-7807-4aa0-a5a4-93a285be8624 DTSTART:20140227T092100 DTEND:20140227T112100 SUMMARY:Another Scheduled Event Already Done CATEGORIES:DONE END:VEVENT END:VCALENDAR --------------------------8<------------------------------------------ And this is my config via /.custom/ as far as org-mode and ical-export are concerned (I tripple checked: no other customizations concerning the issue is involved): --------------------------8<------------------------------------------ (custom-set-variables '(org-combined-agenda-icalendar-file "~/org/ical/org.ics") '(org-icalendar-categories (quote (todo-state))) '(org-icalendar-combined-name "OrgIcal") '(org-icalendar-include-body nil) '(org-icalendar-include-todo t) '(org-icalendar-use-deadline (quote (event-if-todo))) '(org-icalendar-store-UID t) '(org-icalendar-use-plain-timestamp nil) '(org-icalendar-use-scheduled nil) '(org-icalendar-with-timestamps nil) '(org-log-done nil)) --------------------------8<------------------------------------------ Maybe I am doing something terribly wrong. I would appreciate any hint to solve the problem or to do some more investigation. Thanks Martin -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | G. Martin Butz, mb@mkblog.org, 0421 98749324, www.mkblog.org | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~