On 2010-07-12 05:22, Rémi Vanicat wrote:
"Sven Bretfeld"<sven.bretf...@gmx.ch>  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: 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 file-permissions) read-only so the buffer is read-only and not accidentally modifled ..

-michael-

BTW: Sven, if you use option -O <outputfilename> you don't have the problem .[0-9] files; besides it's easier to manage multiple calendars ...




_______________________________________________
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

Reply via email to