emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Vagn Johansen <gonz808@hotmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: ics file not understood by google calendar
Date: Thu, 4 Feb 2010 07:30:39 +0100	[thread overview]
Message-ID: <F69C3D25-FEE6-48CE-8002-D623543DA7D3@gmail.com> (raw)
In-Reply-To: <m27hqu9f7u.fsf@hotmail.com>


On Feb 3, 2010, at 10:33 PM, Vagn Johansen wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> On Feb 2, 2010, at 9:18 PM, Vagn Johansen wrote:
>
>>> I tried git bisect with "grep -R VTODO .". It seems that org-mode  
>>> has
>>> always used VTODO so it is not a regression in org-mode.  I think  
>>> the
>>> problem is caused by a change in google calendar. They no longer
>>> support VTODO.
>>
>> In this case, you just need to export to ical files without TODO
>> stuff, i.e.
>>
>> (setq org-icalendar-include-todo nil)   ; this is already the  
>> default,
>> actually
>
> This just gives me an empty ics file!
>
> For example
>
>    #+STARTUP: content hidestars
>
>    * TODO feb7-todo
>      SCHEDULED: <2010-02-07 Sun>
>    * TODO feb8-todo
>      SCHEDULED: <2010-02-08 Mon>
>    * feb9-event
>      SCHEDULED: <2010-02-09 Tue>
>    * feb10-event
>      SCHEDULED: <2010-02-10 Wed>
>    * EOF
>
> (http://ozymandias.dk/test/test6275.org)
>
> With my custom setting
>
>  '(org-icalendar-include-todo (quote all))
>
> I have feb7-todo and feb8-todo in my ics file after a C-C C-e i
> export. The other two are nowhere to be seen.
> (http://ozymandias.dk/test/test6275.ics)
>
> Your suggestion
>
>  '(org-icalendar-include-todo nil)
>
> gives me an ics-file with no entries.
>
> Are you saying there is a way to get non-TODO entries into the ics
> file?

Yes.

Any entries that have a plain time stamp like

* meeting with Peter
   <2010-02-07 Sun>

will create a VEVENT

Also, you can configure the variables org-icalendar-use-deadlines
and org-icalendar-use-scheduled to make these timestamps become
VEVENT as well.  By default they are set up to use these special
time stamps as start date and due date in TODO entries, but you
can use them for more.  Take a look at the entire customization group
org-export-icalendar, there might be more stuff you'd find useful.

>
> By the way, org-print-icalendar-entries is really difficult to
> understand.

Yes. This function was grown, in the absence of predators.  No
intelligent design here... :-)

> Maybe you could split it up.

It works, and I do not want to break it.  Feel free to break it up,  
test it extensively (!) and send me a patch.

> The function appears to
> generate VTODOs when org-icalendar-include-todo is non-nil and VEVENTs
> when the timestamp begins with <%%. Is the latter related to the diary
> time-format?

Yes, you can use diary-like sexp functions to create complicated dates.

Hope this helps

- Carsten

      reply	other threads:[~2010-02-04  7:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-31  9:47 ics file not understood by google calendar Vagn Johansen
2010-01-31 10:09 ` Vagn Johansen
2010-02-01  6:43 ` Carsten Dominik
2010-02-01 19:47   ` Vagn Johansen
2010-02-02  6:14     ` Carsten Dominik
2010-02-02 20:18       ` Vagn Johansen
2010-02-03 10:37         ` Carsten Dominik
2010-02-03 21:33           ` Vagn Johansen
2010-02-04  6:30             ` Carsten Dominik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F69C3D25-FEE6-48CE-8002-D623543DA7D3@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=gonz808@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).