[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Status google calendar sync

From: Niels Giesen
Subject: Re: [O] Status google calendar sync
Date: Sat, 11 Jun 2011 19:32:58 +0200

> When going from org -> google, do I need to do anything about using
> org-icalendar-store-UID?  I'd rather not have to populate my org files
> with :ID: entries.

You do not strictly need to, but this is the only way you do not
create double events when exporting an org file to .ics and importing
it into google calendar. If you do use them, a change in a date in
org-mode will be reflected as such in google calendar.

Note that if you /do/ want to store uids for the reason I just wrote,
/and/ if you use diary sexps, you'll need an up-to-date Emacs (from
bazaar) and below patch to org-icalendar.el (this has not been applied
yet to org-mode, alas). Otherwise icalendar.el creates a new uid every
time you export anyway.

--- a/lisp/org-icalendar.el
+++ b/lisp/org-icalendar.el
@@ -412,7 +412,10 @@ When COMBINE is non nil, add the category to each line."
          (if scheduledp (setq summary (concat "S: " summary)))
          (if (string-match "\\`<%%" ts)
              (with-current-buffer sexp-buffer
-               (insert (substring ts 1 -1) " " summary "\n"))
+               (let ((entry (substring ts 1 -1)))
+                 (put-text-property 0 1 'uid
+                                    (concat " " prefix uid) entry)
+                 (insert entry " " summary "\n")))
            (princ (format "BEGIN:VEVENT
 UID: %s


reply via email to

[Prev in Thread] Current Thread [Next in Thread]