Re: [Orgmode] icalendar: exporting times of day specified in heading?
Here is a shorter example of the bug of adding new items to org-agenda-diary-file using 'i d' from the *Org Agenda* buffer. (setq org-agenda-diary-file ~/txt/org/a.org) Start with an small agenda.org file (a.org) containing -- * 2010 ** 2010-03 March *** 2010-03-02 Tuesday test 1 2010-03-02 Tue *** 2010-03-06 Saturday test 2 2010-03-06 Sat -- (those entries were put in using 'i d' fine). Go into a.org and show only the top-level heading is shown, i.e. * 2010... Everything else is hidden. Now go back to the agenda and e.g. on the 3rd March add a diary entry 'i d test 3'. What I then see in a.org is: -- * 2010 ** 2010-03 March *** 2010-03-02 Tuesday test 1 2010-03-02 Tue *** 2010-03-03 Wednesday ** test 3 2010-03-03 Wed *** 2010-03-06 Saturday test 2 2010-03-06 Sat -- test 3 is incorrectly given a level 2 heading, and there are two lines of whitespace before the level-3 date heading. If however the whole date tree is visible before doing the 'i d' command, I get the correct output: -- * 2010 ** 2010-03 March *** 2010-03-02 Tuesday test 1 2010-03-02 Tue *** 2010-03-03 Wednesday test 3 2010-03-03 Wed *** 2010-03-06 Saturday test 2 2010-03-06 Sat -- (emacs-version) GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.1) of 2009-08-05 on maps (org-version) Org-mode version 6.34trans (release_6.34c.25.g3693.dirty) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
Hi Stephen, Eric, this bug should be fixed now. Thanks! - Carsten On Feb 1, 2010, at 1:41 PM, Stephen Eglen wrote: Here is a shorter example of the bug of adding new items to org-agenda-diary-file using 'i d' from the *Org Agenda* buffer. (setq org-agenda-diary-file ~/txt/org/a.org) Start with an small agenda.org file (a.org) containing -- * 2010 ** 2010-03 March *** 2010-03-02 Tuesday test 1 2010-03-02 Tue *** 2010-03-06 Saturday test 2 2010-03-06 Sat -- (those entries were put in using 'i d' fine). Go into a.org and show only the top-level heading is shown, i.e. * 2010... Everything else is hidden. Now go back to the agenda and e.g. on the 3rd March add a diary entry 'i d test 3'. What I then see in a.org is: -- * 2010 ** 2010-03 March *** 2010-03-02 Tuesday test 1 2010-03-02 Tue *** 2010-03-03 Wednesday ** test 3 2010-03-03 Wed *** 2010-03-06 Saturday test 2 2010-03-06 Sat -- test 3 is incorrectly given a level 2 heading, and there are two lines of whitespace before the level-3 date heading. If however the whole date tree is visible before doing the 'i d' command, I get the correct output: -- * 2010 ** 2010-03 March *** 2010-03-02 Tuesday test 1 2010-03-02 Tue *** 2010-03-03 Wednesday test 3 2010-03-03 Wed *** 2010-03-06 Saturday test 2 2010-03-06 Sat -- (emacs-version) GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.1) of 2009-08-05 on maps (org-version) Org-mode version 6.34trans (release_6.34c.25.g3693.dirty) - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
At Mon, 1 Feb 2010 14:31:02 +0100, Carsten Dominik wrote: Hi Stephen, Eric, this bug should be fixed now. Thanks! ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
Thanks Carsten, the test case I sent before now works properly in terms of indentation: -- * 2010 ** 2010-03 March *** 2010-03-02 Tuesday test 1 2010-03-02 Tue *** 2010-03-03 Wednesday test 3 2010-03-03 Wed *** 2010-03-06 Saturday test 2 2010-03-06 Sat -- There's still something putting in an extra blank line though (see empty line before 'test 3' heading. This blank line is not added if the tree is visible before doing 'i d'. Stephen ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
There's still something putting in an extra blank line though (see empty line before 'test 3' heading. This blank line is not added if the tree is visible before doing 'i d'. That extra blank line doesn't seem reproducible, sorry. I'll keep an eye out, I think you've fixed the problem, thanks Carsten! Stephen ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
At Thu, 28 Jan 2010 19:31:06 +0100, Carsten Dominik wrote: On Jan 28, 2010, at 4:22 PM, Stephen Eglen wrote: [...] A small note though: along the way, I've sometimes noticed that diary entries are included with a level 2 heading rather than a level 4 heading. I do not understand this. Included where? How? Can you please describe this more extensively? Thanks Carsten, I don't know for sure whether what Stephen reports is the same as I have seen, but what I sometimes get using the 'i d' key sequence in the agenda (org-agenda-diary-entry) looks like this: --8---cut here---start-8--- * 2010 *** 2010-01 January * 2010-01-01 Friday *** something on Friday 2010-01-01 Fri *** something else 2010-01-01 Fri * 2010-01-06 Wednesday *** another entry 2010-01-07 Thu *** 2010-01-08 Friday * a strangely placed entry 2010-01-08 Fri --8---cut here---end---8--- Note the level at which the last entry has been placed: it's a sibling of the month headline instead of being a child. It's easily fixed manually but obviously it's best if this doesn't happen! *But*, please note that I haven't experienced this behaviour during the past few weeks so it may have been fixed accidentally along the way... In any case, I've not done any extensive exploration of when this actually happens and it's not a big deal! Thanks, eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
A small note though: along the way, I've sometimes noticed that diary entries are included with a level 2 heading rather than a level 4 heading. I do not understand this. Included where? How? Can you please describe this more extensively? From the *Org Agenda* buffer, if I visit the 6 Feb 2010, and then do 'i d' 'test weekend', what I expect to see in the agenda.org file is *** 2010-02-06 Saturday test weekend 2010-02-06 Sat whereas what I got was: *** 2010-02-06 Saturday ** test weekend 2010-02-06 Sat this level-3 heading sits under ** 2010-02 February which in turn is under * 2010 This is not easy to reproduce, and it took me a few tries to get this one. But I think I've got it to the stage where I at least get reproduce it with a fresh emacs (v23) run on my current agenda.org file. Stephen ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
Hi Stephen, while it might be possible to do what you ask for, I think it is error- prone because people might accidently have something in the headline which looks like a time. I don't mind so much if Org's agenda stumbles over this, but I don't want to produce incorrect icalendar files. Also, this icalendar export function is programmed in a messy way, and I don't see a quick way to fix this. If you can make me a patch, I will take it. - Carsten On Jan 16, 2010, at 3:38 PM, Stephen Eglen wrote: Hi, I often use org-agenda-diary-entry to make simple entries into an agenda.org file. I see that the agenda is clever enough to recognise if a time range has been typed into the heading. However, this time range is not exported by the icalendar code. Here's a simple example, independent of org-agenda-diary-entry, although in reality, example 2 would be the type of entry I normally make. if I have a test.org file containing: -- * 2010-01-16 Sat 08:00-08:30 example 1 * 2010-01-16 Sat example 2 09:00-09:30 -- then when I view the agenda I see: Saturday 16 January 2010 test:8:00- 8:30 example 1 8:00.. test:9:00- 9:30 example 2 10:00.. [There's an extra space before 'example 2', which I'm not sure about.] So far, so good - the agenda has parsed 09:00-09:30 from the headline. But now if I make an ics file (e.g. by 'C-c C-e i' in test.org) the start and end time of the event are not recognised. Here's a relevant snippet from test.ics: BEGIN:VCALENDAR ... DTSTART:20100116T08 DTEND:20100116T083000 SUMMARY: example 1 CATEGORIES:test ... DTSTART;VALUE=DATE:20100116 DTEND;VALUE=DATE:20100117 SUMMARY: example 2 09:00-09:30 What I *think* I'd like is that for the 2nd calendar entry is DTSTART:20100116T0900 DTEND:20100116T0930 Is that sensible/possible? Alternatively, how about org-agenda-diary-entry parsing the time specification and writing the date and time within angle brackets? (org-version) Org-mode version 6.33trans (release_6.33f.22.gcb8ce.dirty) Thanks, Stephen ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
Hi Carsten, Hi Stephen, while it might be possible to do what you ask for, I think it is error- prone because people might accidently have something in the headline which looks like a time. I don't mind so much if Org's agenda stumbles over this, but I don't want to produce incorrect icalendar files. Also, this icalendar export function is programmed in a messy way, and I don't see a quick way to fix this. If you can make me a patch, I will take it. Thanks for this. I did decide to bite the bullet and look into this. I think I have some working code, modifiying: org-agenda-add-entry-to-org-agenda-diary-file so that it parses out the date at that point, conditional on org-agenda-search-headline-for-time being t. In this way, it doesn't touch the ical export functions. I will double check and submit a patch for consideration. A small note though: along the way, I've sometimes noticed that diary entries are included with a level 2 heading rather than a level 4 heading. I haven't been able to track this down, its just noticeable when I later browse agenda.org *** 2010-02-02 Tuesday 15:00-15:30 check me 2010-02-02 Tue i.e. that 2nd line is sometimes given two heaings, and is not within the right level 3 heading. Anything obvious I might want to look at when debugging? Stephen ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
At Thu, 28 Jan 2010 15:22:41 +, Stephen Eglen wrote: [...] A small note though: along the way, I've sometimes noticed that diary entries are included with a level 2 heading rather than a level 4 heading. I haven't been able to track this down, its just noticeable when I later browse agenda.org i.e. that 2nd line is sometimes given two heaings, and is not within the right level 3 heading. I also have experienced this, specifically that the actual day entry does not appear below the month headline but alongside it (i.e. a sibling, at the same depth). I have not mentioned it before as I have not been able to have this happen in a reproducible manner. Also, I'm not sure if it has something to do with the differences between emacs v23 and v22; I have to use both depending on which of my computers I happen to have at hand! [...] Anything obvious I might want to look at when debugging? Ditto. If there's any obvious debugging I can do to help track this down, please let me know. Having said this, I've not noticed it happen in the past couple of weeks. eric ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] icalendar: exporting times of day specified in heading?
On Jan 28, 2010, at 4:22 PM, Stephen Eglen wrote: Hi Carsten, Hi Stephen, while it might be possible to do what you ask for, I think it is error- prone because people might accidently have something in the headline which looks like a time. I don't mind so much if Org's agenda stumbles over this, but I don't want to produce incorrect icalendar files. Also, this icalendar export function is programmed in a messy way, and I don't see a quick way to fix this. If you can make me a patch, I will take it. Thanks for this. I did decide to bite the bullet and look into this. I think I have some working code, modifiying: org-agenda-add-entry-to-org-agenda-diary-file so that it parses out the date at that point, conditional on org-agenda-search-headline-for-time being t. In this way, it doesn't touch the ical export functions. I will double check and submit a patch for consideration. Thanks! A small note though: along the way, I've sometimes noticed that diary entries are included with a level 2 heading rather than a level 4 heading. I do not understand this. Included where? How? Can you please describe this more extensively? Thanks - Carsten I haven't been able to track this down, its just noticeable when I later browse agenda.org *** 2010-02-02 Tuesday 15:00-15:30 check me 2010-02-02 Tue i.e. that 2nd line is sometimes given two heaings, and is not within the right level 3 heading. Anything obvious I might want to look at when debugging? Stephen - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] icalendar: exporting times of day specified in heading?
Hi, I often use org-agenda-diary-entry to make simple entries into an agenda.org file. I see that the agenda is clever enough to recognise if a time range has been typed into the heading. However, this time range is not exported by the icalendar code. Here's a simple example, independent of org-agenda-diary-entry, although in reality, example 2 would be the type of entry I normally make. if I have a test.org file containing: -- * 2010-01-16 Sat 08:00-08:30 example 1 * 2010-01-16 Sat example 2 09:00-09:30 -- then when I view the agenda I see: Saturday 16 January 2010 test:8:00- 8:30 example 1 8:00.. test:9:00- 9:30 example 2 10:00.. [There's an extra space before 'example 2', which I'm not sure about.] So far, so good - the agenda has parsed 09:00-09:30 from the headline. But now if I make an ics file (e.g. by 'C-c C-e i' in test.org) the start and end time of the event are not recognised. Here's a relevant snippet from test.ics: BEGIN:VCALENDAR ... DTSTART:20100116T08 DTEND:20100116T083000 SUMMARY: example 1 CATEGORIES:test ... DTSTART;VALUE=DATE:20100116 DTEND;VALUE=DATE:20100117 SUMMARY: example 2 09:00-09:30 What I *think* I'd like is that for the 2nd calendar entry is DTSTART:20100116T0900 DTEND:20100116T0930 Is that sensible/possible? Alternatively, how about org-agenda-diary-entry parsing the time specification and writing the date and time within angle brackets? (org-version) Org-mode version 6.33trans (release_6.33f.22.gcb8ce.dirty) Thanks, Stephen ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode