From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Steiner Subject: Re: [google] updated awk script for google to org conversion Date: Mon, 12 Jul 2010 09:48:17 -0400 Message-ID: References: <87wrt5kqfn.wl%ucecesf@ucl.ac.uk> <87sk3tkmzx.wl%ucecesf@ucl.ac.uk> <87iq4l6sxi.fsf@gmx.ch> <87630l9hqn.dlv@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=36478 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYJmn-0008Om-PR for emacs-orgmode@gnu.org; Mon, 12 Jul 2010 10:15:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYJmk-0006Qs-T3 for emacs-orgmode@gnu.org; Mon, 12 Jul 2010 10:15:08 -0400 Received: from lo.gmane.org ([80.91.229.12]:39237) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYJmk-0006QY-H4 for emacs-orgmode@gnu.org; Mon, 12 Jul 2010 10:15:06 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OYJmh-0004Cn-LS for emacs-orgmode@gnu.org; Mon, 12 Jul 2010 16:15:03 +0200 Received: from pool-71-167-248-20.nycmny.east.verizon.net ([71.167.248.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jul 2010 16:15:03 +0200 Received: from michisteiner by pool-71-167-248-20.nycmny.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 12 Jul 2010 16:15:03 +0200 In-Reply-To: <87630l9hqn.dlv@debian.org> 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: emacs-orgmode@gnu.org On 2010-07-12 05:22, R=C3=A9mi Vanicat wrote: > "Sven Bretfeld" writes: > > > [...] > >> >> 2. Running the above script with cron, makes Emacs continually ask if >> googlecalendar.org should really be edited, because the file had >> changed on disk. So I put the whole thing into an Emacs function: >> > > you could use auto-revert-mode: That's what i do: i slightly changed ical2org.awk by replacing line 77 print "#+TITLE: Main Google calendar entries" with print "#+TITLE: Main Google calendar entries -*- mode:=20 auto-revert; mode: org; -*-" which does make it automatic exactly for this files. Works fairly well. = In addition as i only do one-way sync i also turn the files (via=20 file-permissions) read-only so the buffer is read-only and not=20 accidentally modifled .. -michael- BTW: Sven, if you use option -O you don't have the=20 problem .[0-9] files; besides it's easier to manage multiple calendars ..= =2E