emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* iCal-Export: Strange Results
@ 2014-02-20 19:43 G. Martin Butz
  2014-03-21  8:03 ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: G. Martin Butz @ 2014-02-20 19:43 UTC (permalink / raw)
  To: org mode

Hi,

today I tried to setup iCal-Export of one org file contributing to my 
agenda. As I use Mozilla Sunbird (resp. Iceowl) to keep track of my 
company dates synchronizing with a remote ical file, it seemed to be a 
good idea to have also my org dates available in Iceowl.

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 tried the export using the default values of the export function (C-c 
C-e c f) described in <http://orgmode.org/manual/iCalendar-export.html>

I then set (org-icalendar-store-UID t) thinking it had something to do 
with it.

After some googling without any definite results I I scanned the 
org-icaendar-group an set some further variables. My setup now looks as 
following:

(org-combined-agenda-icalendar-file "~/ical/org.ics")
(org-icalendar-categories (quote (todo-state)))
(org-icalendar-include-todo t)
(org-icalendar-store-UID t)
(org-icalendar-use-plain-timestamp nil)

My org-mode-version is 8.2.4 with Emacs 24.3.1

Can anyone provide a hint, what am I doing wrong?

Best Regards
Martin

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| G. Martin Butz, mb@mkblog.org, 0421 98749324, www.mkblog.org |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iCal-Export: Strange Results
  2014-02-20 19:43 iCal-Export: Strange Results G. Martin Butz
@ 2014-03-21  8:03 ` Bastien
  2014-03-21 12:22   ` G. Martin Butz
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2014-03-21  8:03 UTC (permalink / raw)
  To: G. Martin Butz; +Cc: org mode

Hi,

"G. Martin Butz" <mb@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iCal-Export: Strange Results
  2014-03-21  8:03 ` Bastien
@ 2014-03-21 12:22   ` G. Martin Butz
  2014-03-21 12:25     ` Bastien
  0 siblings, 1 reply; 5+ messages in thread
From: G. Martin Butz @ 2014-03-21 12:22 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: bzg

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" <mb@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:20140303T160000
DTEND:20140303T180000
SUMMARY:S: A Scheduled Event
CATEGORIES:TODO
END:VEVENT
BEGIN:VTODO
UID:TODO-d092bad5-6559-405f-8afd-a9515b372323
DTSTAMP:20140321T120206Z
DTSTART:20140303T160000
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:20140313T100000
DTEND:20140313T120000
SUMMARY:DL: A Scheduled Event with Deadline
CATEGORIES:TODO
END:VEVENT
BEGIN:VEVENT
DTSTAMP:20140321T120206Z
UID:SC-53958c17-4a83-4150-8213-895a76bf4db1
DTSTART:20140316T150000
DTEND:20140316T170000
SUMMARY:S: A Scheduled Event with Deadline
CATEGORIES:TODO
END:VEVENT
BEGIN:VTODO
UID:TODO-53958c17-4a83-4150-8213-895a76bf4db1
DTSTAMP:20140321T120206Z
DTSTART:20140316T150000
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:20140207T150000
DTEND:20140207T170000
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, mb@mkblog.org, 0421 98749324, www.mkblog.org |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iCal-Export: Strange Results
  2014-03-21 12:22   ` G. Martin Butz
@ 2014-03-21 12:25     ` Bastien
  2014-03-21 13:17       ` G. Martin Butz
  0 siblings, 1 reply; 5+ messages in thread
From: Bastien @ 2014-03-21 12:25 UTC (permalink / raw)
  To: G. Martin Butz; +Cc: emacs-orgmode

Hi Martin,

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

"G. Martin Butz" <mb@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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: iCal-Export: Strange Results
  2014-03-21 12:25     ` Bastien
@ 2014-03-21 13:17       ` G. Martin Butz
  0 siblings, 0 replies; 5+ messages in thread
From: G. Martin Butz @ 2014-03-21 13:17 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

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, mb@mkblog.org, 0421 98749324, www.mkblog.org |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-03-21 13:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-20 19:43 iCal-Export: Strange Results G. Martin Butz
2014-03-21  8:03 ` Bastien
2014-03-21 12:22   ` G. Martin Butz
2014-03-21 12:25     ` Bastien
2014-03-21 13:17       ` G. Martin Butz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).