From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: external process modifying buffers Date: Sun, 16 Sep 2012 23:34:44 -0400 Message-ID: <26788.1347852884@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDS6k-0007x2-PQ for emacs-orgmode@gnu.org; Sun, 16 Sep 2012 23:34:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDS6j-0003Ia-DT for emacs-orgmode@gnu.org; Sun, 16 Sep 2012 23:34:50 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:16550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDS6j-0003IO-6Z for emacs-orgmode@gnu.org; Sun, 16 Sep 2012 23:34:49 -0400 In-Reply-To: Message from Ken Mankoff of "Sun, 16 Sep 2012 14:24:14 PDT." 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: Ken Mankoff Cc: Charles Philip Chan , Org-mode 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, > > -k. > Two points: o the doc says ,---- | Setting this variable directly does not take effect; | either customize it (see the info node `Easy Customization') | or call the function `global-auto-revert-mode'. `---- o I've pointed out some possible gotcha's with setting global-auto-revert-mode before - see http://thread.gmane.org/gmane.emacs.orgmode/58053. Nick > > On Sun, Sep 16, 2012 at 2:08 PM, Charles Philip Chan wrote: > > 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". > > > > Cheers, > > Charles > > > > -- > > linux: the choice of a GNU generation > > (ksh@cis.ufl.edu put this on Tshirts in '93) >