From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moritz Ulrich Subject: Re: external process modifying buffers Date: Tue, 18 Sep 2012 14:28:09 +0200 Message-ID: References: , , Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDwui-0000kY-R3 for emacs-orgmode@gnu.org; Tue, 18 Sep 2012 08:28:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDwuc-0006aM-Rl for emacs-orgmode@gnu.org; Tue, 18 Sep 2012 08:28:28 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:53152) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDwuc-0006a4-L1 for emacs-orgmode@gnu.org; Tue, 18 Sep 2012 08:28:22 -0400 Received: by bkcjc3 with SMTP id jc3so2732545bkc.0 for ; Tue, 18 Sep 2012 05:28:21 -0700 (PDT) In-reply-to: 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 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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.or= g"))) > > With full paths to the ical2org binary and the iCal.org file. > > Thanks, > > -k. > 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 prefer it for the iCal.org buffer only, enable auto-revert-mode (without global-) via a file-local variable in it: http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html > > On Sun, Sep 16, 2012 at 2:08 PM, Charles Philip Chan wr= ote: >> 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) Cheers, Moritz =2D-=20 Moritz Ulrich --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (Darwin) iQEcBAEBCAAGBQJQWGjcAAoJEKUFGO1Zs0thxBsIAMIOzVXhuHeFAo30IANwMNDm asl177JFfUdgZUZg8cvMR3v7553+OGzOYdpfFOR6JnaS6sCAqTW7iSK0Ms1Q7+Nr 02Zanfbru2p1nk4uRkFTypddTmLrHykprzM56q0f7Ssia3d3CJTqqCZS/wpxiM8h s7AZclFzqGKd2o8xDMNwDH7q/ly+dRJtWnTcJDeD7eD70inZXb1vxT63q5Sd0U4d M6A+S8dDIxy0N09F+bafsPpNXCuNvPm4X9nJoLN3nkmhwH2oYkLL9Y1vonpuM4i3 cT2xGhZLJhJQht/tm02ihujF1Oxwl+8q9hM4Qu255cV/v0cAA5Y5GHWEQmB9HnA= =sJOe -----END PGP SIGNATURE----- --=-=-=--