From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niels Giesen Subject: Re: Status google calendar sync Date: Sat, 11 Jun 2011 19:32:58 +0200 Message-ID: References: <8762t3idd3.fsf@gmx.ch> <4D48E887.20900@gmail.com> <5E7BEB01-1411-4BF4-A36B-C4FF43E55CF6@fastmail.net> <6843D3C6-E3B7-4D31-9F4C-163FA3770D71@fastmail.net> <4DF24E8E.5010200@lbl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVS3S-0001FQ-LC for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 13:33:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVS3Q-0001pn-To for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 13:33:02 -0400 Received: from mail-px0-f179.google.com ([209.85.212.179]:34408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVS3Q-0001pB-Nv for emacs-orgmode@gnu.org; Sat, 11 Jun 2011 13:33:00 -0400 Received: by pxi2 with SMTP id 2so2048846pxi.38 for ; Sat, 11 Jun 2011 10:32:59 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stephen Eglen Cc: emacs-orgmode@gnu.org > When going from org -> google, do I need to do anything about using > org-icalendar-store-UID? =C2=A0I'd rather not have to populate my org fil= es > 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 %s --=20 http://pft.github.com