From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Diary synchronising with Google calendar Date: Fri, 09 Jul 2010 21:28:27 +0100 Message-ID: <87mxu0iems.wl%ucecesf@ucl.ac.uk> References: <19508.61256.794705.331948@gargle.gargle.HOWL> <25098780.22494.1278541157993.JavaMail.root@zm-cesbio-01> <19511.31257.267848.353668@gargle.gargle.HOWL> Reply-To: Eric S Fraga Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Jul__9_21:28:27_2010-1" Return-path: Received: from [140.186.70.92] (port=49096 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OXKBa-0003N0-SO for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:28:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OXKBZ-0003CG-E3 for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:28:38 -0400 Received: from vscane-a.ucl.ac.uk ([144.82.108.41]:57611) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OXKBZ-0003C0-95 for emacs-orgmode@gnu.org; Fri, 09 Jul 2010 16:28:37 -0400 In-Reply-To: <19511.31257.267848.353668@gargle.gargle.HOWL> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jordi Inglada Cc: org-mode mailing list --Multipart_Fri_Jul__9_21:28:27_2010-1 Content-Type: text/plain; charset=US-ASCII On Fri, 9 Jul 2010 21:35:53 +0200, Jordi Inglada wrote: > > Hi Eric, > > Sorry for bothering you again. No problem! I've "bothered" plenty of people in the past... > First of all, the google2org workflow works perfect with your last > script. Thanks! Excellent. You're very welcome. > However, I do not understand how to proceed in the other direction > (org2google). I got your advice function, but I don't know what to do > with it ... Well, you have to execute both elisp statements, the one that defines the "advice" and the one that activates this advice. If you want this done every time, copy the code into your .emacs (or equivalent), placing it after the code which loads org. Once activate, the code in the advice will be automatically executed every time you insert an entry in the diary (more below). Note, however, that this advice assumes the following: 1. that you have installed the google command line scripts and that the "google" command is found at /usr/bin/google. If it is somewhere else, please change the relevant line in the code. 2. that you have already authenticated yourself to Google, doing for instance a manual add of an entry to the calendar directly from the shell, i.e. executing something like google add --cal org "This is a test entry for 2pm" Of course, the latter also assumes that you have created a calendar named "org" in Google's calendar. > Could you describe how things work when you add an entry to your > diary.org file? Which is the fucntion executed for this? How comes > that the advice is activated? I have defined diary.org as the target for any agenda diary entries: (setq org-agenda-diary-file "~/git/notes/diary.org") and it is one of my agenda files. Therefore, when I view the agenda (default: "C-c a a"), and then ask to insert a diary entry ("i d"), this will invoke the function which I have "advised" and the google script will be called. Hope this helps. --Multipart_Fri_Jul__9_21:28:27_2010-1 Content-Type: text/plain; charset=US-ASCII -- Eric S Fraga GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D --Multipart_Fri_Jul__9_21:28:27_2010-1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Multipart_Fri_Jul__9_21:28:27_2010-1--