emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Tyler Smith <sedgeboy@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: syncing with google calendar, file changed on disk
Date: Thu, 13 Sep 2012 11:39:56 -0400	[thread overview]
Message-ID: <10479.1347550796@alphaville> (raw)
In-Reply-To: Message from Tyler Smith <sedgeboy@gmail.com> of "Thu, 13 Sep 2012 11:24:24 EDT." <CADkt+ZuFsJX5JKs3K7f7-Y8-782EbQqRS2ysY6Q6ftA+HFeXuw@mail.gmail.com>

Tyler Smith <sedgeboy@gmail.com> wrote:

> Hi,
> Following the instructions from Worg (
> http://orgmode.org/worg/org-tutorials/org-google-sync.html ), I've set
> a cron job to download my google calendar, and use Eric Fraga's awk
> script to convert it into google.org for inclusion in my agenda. This
> works fine, and is currently my only syncing option as my access to
> other web services (git, dropbox etc) is blocked at my workplace.
> One small issue: the google calendar file changes regularly, even when
> I haven't added or modified any appointments. As a consequence, I am
> interrupted by Emacs reminding me that google.org has changed on disk,
> and I need to respond before I can continue to browse my agenda. This
> isn't a big deal, but maybe one of you know how to eliminate this
> problem?
> For the record, the sort of changes that I see are this:
> ~/.emacs.d/org$ diff google.org google.org-old
> 488c488
> ---
> 490,491d489
> < SUMMARY:Alarm notification
> < ATTENDEE:mailto:xxx@gmail.com
> 495c493
> ---
> 496a495,496
> > SUMMARY:Alarm notification
> > ATTENDEE:mailto:xxx@gmail.com
> It seems the ACTION line switches back and forth between DISPLAY and
> EMAIL. I don't understand the ics format to know what this means.
> I have searched the mailing list and stackoverflow, but if this has
> come up before I missed it. Thanks for your help,

The brute force approach: make the cron job download to a different
file, diff the two and if the diff is just
ACTION:EMAIL<-->ACTION:DISPLAY lines and Alarm notification crud, then
throw away the downloaded file. If the diff is different, move the
downloaded file to google.org.

If you go this way, you might want to play around with different diff
formats to see which one is the easiest to parse for the minimal diff(s)


  reply	other threads:[~2012-09-13 15:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-13 15:24 syncing with google calendar, file changed on disk Tyler Smith
2012-09-13 15:39 ` Nick Dokos [this message]
2012-09-13 16:52   ` Arun Persaud
  -- strict thread matches above, loose matches on Subject: below --
2012-09-13 13:37 Tyler Smith

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:

  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=10479.1347550796@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=sedgeboy@gmail.com \


* 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


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).