Re: [O] iCal-Export: Strange Results

2014-03-21 Thread Bastien
Hi,

G. Martin Butz m...@mkblog.org writes:

 While importing and viewing one of my org files, I do get strange results:

 + I only see dates from DONE-entries
 + There might be e.g. an entry in the ical file/Iceowl dated to
   09:57, 2nd of December 2013
 + The body of the calendar entry in ical file/Iceowl contains:
   • State DONE from TODO [2013-12-02 Mo 09:57] meaning
   the entry is dated to the date and time I set the entry to DONE
 + I do not see any active TODO-entries at all

we would need a minimal example of the .org file you try to export to
iCalendar in order to reproduce those problems.  Probably some come
from the export options you are using, independantly of the iCal
export backend.

Or maybe this got sorted out in the meantime, who knows.

Thanks for further information,

-- 
 Bastien



Re: [O] iCal-Export: Strange Results

2014-03-21 Thread G. Martin Butz

Hi Bastien,

thanks for getting back to this. Meanwhile I can live with exporting the 
whole agenda to ics.


Am 21.03.2014 09:03, schrieb Bastien:

Hi,

G. Martin Butz m...@mkblog.org writes:


While importing and viewing one of my org files, I do get strange results:

+ I only see dates from DONE-entries
+ There might be e.g. an entry in the ical file/Iceowl dated to
   09:57, 2nd of December 2013
+ The body of the calendar entry in ical file/Iceowl contains:
   • State DONE from TODO [2013-12-02 Mo 09:57] meaning
   the entry is dated to the date and time I set the entry to DONE
+ I do not see any active TODO-entries at all


I checked with the file I tested in February with. I now do get active 
TODO-entries. No idea what I changed meanwhile. But I also get entries 
for the DONE-state, which I do not want.



we would need a minimal example of the .org file you try to export to
iCalendar in order to reproduce those problems.  Probably some come
from the export options you are using, independantly of the iCal
export backend.


This is my test file:

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-

I get the following ics-file with C-c C-e c f:

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:VEVENT
DTSTAMP:20140321T120206Z
UID:SC-d092bad5-6559-405f-8afd-a9515b372323
DTSTART:20140303T16
DTEND:20140303T18
SUMMARY:S: A Scheduled Event
CATEGORIES:TODO
END:VEVENT
BEGIN:VTODO
UID:TODO-d092bad5-6559-405f-8afd-a9515b372323
DTSTAMP:20140321T120206Z
DTSTART:20140303T16
SUMMARY:A Scheduled Event
CATEGORIES:TODO
SEQUENCE:1
PRIORITY:5
STATUS:NEEDS-ACTION
END:VTODO
BEGIN:VEVENT
DTSTAMP:20140321T120206Z
UID:DL-53958c17-4a83-4150-8213-895a76bf4db1
DTSTART:20140313T10
DTEND:20140313T12
SUMMARY:DL: A Scheduled Event with Deadline
CATEGORIES:TODO
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20140321T120206Z
UID:SC-53958c17-4a83-4150-8213-895a76bf4db1
DTSTART:20140316T15
DTEND:20140316T17
SUMMARY:S: A Scheduled Event with Deadline
CATEGORIES:TODO
END:VEVENT
BEGIN:VTODO
UID:TODO-53958c17-4a83-4150-8213-895a76bf4db1
DTSTAMP:20140321T120206Z
DTSTART:20140316T15
SUMMARY:A Scheduled Event with Deadline
CATEGORIES:TODO
SEQUENCE:1
PRIORITY:5
STATUS:NEEDS-ACTION
END:VTODO
BEGIN:VEVENT
DTSTAMP:20140321T120206Z
UID:SC-745d0dc5-0ebd-40cc-80fd-e06d1170fa44
DTSTART;VALUE=DATE:20140224
DTEND;VALUE=DATE:20140225
SUMMARY:S: A Scheduled Event Already Done
CATEGORIES:DONE
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20140321T120206Z
UID:TS1-745d0dc5-0ebd-40cc-80fd-e06d1170fa44
DTSTART:20140227T091400
DTEND:20140227T111400
SUMMARY:A Scheduled Event Already Done
CATEGORIES:DONE
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20140321T120206Z
UID:SC-45b90294-7807-4aa0-a5a4-93a285be8624
DTSTART:20140207T15
DTEND:20140207T17
SUMMARY:S: Another Scheduled Event Already Done
CATEGORIES:DONE
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20140321T120206Z
UID:TS1-45b90294-7807-4aa0-a5a4-93a285be8624
DTSTART:20140227T092100
DTEND:20140227T112100
SUMMARY:Another Scheduled Event Already Done
CATEGORIES:DONE
END:VEVENT
END:VCALENDAR
8-

My settings at the time:
8-
(setq org-combined-agenda-icalendar-file ~/org/ical/org.ics)
 (setq org-icalendar-combined-agenda-file ~/org/ical/org.ics)
 (setq org-icalendar-categories (quote (todo-state)))
 (setq org-icalendar-combined-name OrgIcal)
 (setq org-icalendar-include-body nil)
 (setq org-icalendar-include-todo t)
 (setq org-icalendar-use-deadline (quote (event-if-todo)))
 (setq org-icalendar-store-UID t)
 (setq org-icalendar-use-plain-timestamp nil)
 (setq org-icalendar-use-scheduled nil)
 (setq org-icalendar-with-timestamps nil)
 (setq org-icalendar-use-scheduled '(todo-start event-if-todo))
8-


Or maybe this got sorted out in the meantime, who knows.


See above: In a way yes.


Thanks for further information,


Thank you
Martin


--

| G. Martin Butz, m...@mkblog.org, 0421 

Re: [O] iCal-Export: Strange Results

2014-03-21 Thread Bastien
Hi Martin,

thanks for the details, good to know part of the bug is gone.

G. Martin Butz m...@mkblog.org writes:

 I checked with the file I tested in February with. I now do get active
 TODO-entries. No idea what I changed meanwhile. But I also get entries
 for the DONE-state, which I do not want.

The default value of `org-export-with-tasks' is `t', which will export
all tasks.  You can narrow to not-done tasks with:

  (setq org-export-with-tasks 'todo)

HTH,

-- 
 Bastien



Re: [O] iCal-Export: Strange Results

2014-03-21 Thread G. Martin Butz

Am 21.03.2014 13:25, schrieb Bastien:


[...]


The default value of `org-export-with-tasks' is `t', which will export
all tasks.  You can narrow to not-done tasks with:

   (setq org-export-with-tasks 'todo)



Ah, thanks. I studied all the ical export settings, that's why I missed 
this generic setting for all exports.


Probably this will do it. I'll check.

Best
Martin

--

| G. Martin Butz, m...@mkblog.org, 0421 98749324, www.mkblog.org |