Re: [O] external process modifying buffers

2012-10-13 Thread Sean O'Halpin
On Sat, Oct 13, 2012 at 5:27 PM, Ken Mankoff wrote: > Can you suggest how to have it as a local file variable when the > command that generates the file over-writes it? I have modified the > code that produces the iCal.org file so the top line now is: > > # -*- coding: utf-8; auto-revert-mode: t;

Re: [O] external process modifying buffers

2012-10-13 Thread Ken Mankoff
Hi Moritz, On Tue, Sep 18, 2012 at 2:28 PM, Moritz Ulrich wrote: > Please note that `global-auto-revert-mode' reverts ALL Emacs buffers > when the underlaying file changes. This isn't just active for the > iCal.org buffer, but for all open buffers. > > If you like this behavior, ok, but if you pr

Re: [O] external process modifying buffers

2012-09-18 Thread Moritz Ulrich
Ken Mankoff writes: > Thanks! That makes it much cleaner. My setup is now reduced to this: > > (setq global-auto-revert-mode t) > (run-at-time "2 minutes" 600 '(lambda () (shell-command "ical2org>iCal.org"))) > > With full paths to the ical2org binary and the iCal.org file. > > Thanks, > >-k.

Re: [O] external process modifying buffers

2012-09-16 Thread Nick Dokos
Ken Mankoff wrote: > Thanks! That makes it much cleaner. My setup is now reduced to this: > > (setq global-auto-revert-mode t) > (run-at-time "2 minutes" 600 '(lambda () (shell-command "ical2org>iCal.org"))) > > With full paths to the ical2org binary and the iCal.org file. > > Thanks, > >

Re: [O] external process modifying buffers

2012-09-16 Thread Ken Mankoff
Thanks! That makes it much cleaner. My setup is now reduced to this: (setq global-auto-revert-mode t) (run-at-time "2 minutes" 600 '(lambda () (shell-command "ical2org>iCal.org"))) With full paths to the ical2org binary and the iCal.org file. Thanks, -k. On Sun, Sep 16, 2012 at 2:08 PM, Ch

Re: [O] external process modifying buffers

2012-09-16 Thread Charles Philip Chan
Ken Mankoff writes: Hi Ken: > Right now I'm running ical2org via cron and re-generating iCal.org > (redirecting stdout with ">"). When I try to regenerate the agenda, > emacs complains: > > iCal.org changed on disk; really edit the buffer? (y, n, r or C-h) Set "global-auto-revert-mode" to "t".

[O] external process modifying buffers

2012-09-16 Thread Ken Mankoff
Hi, I'd like to have my Mac iCal events appear in my agenda. I was using org-mac-iCal for this without problem, but it doesn't parse things as well as the external python ical2org program (http://www.doughellmann.com/projects/ical2org/). Right now I'm running ical2org via cron and re-generating i