From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Agenda and Reloading Changed Files Date: Mon, 19 Oct 2009 20:47:40 -0400 Message-ID: <87hbtuvqkz.fsf@gollum.intra.norang.ca> References: <863a5frn3f.fsf@pmade.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N02t9-0004r1-Ic for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 20:47:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N02t5-0004q9-RT for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 20:47:46 -0400 Received: from [199.232.76.173] (port=37187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N02t5-0004q6-LN for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 20:47:43 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:57353) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N02t5-0000P3-Cp for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 20:47:43 -0400 In-Reply-To: <863a5frn3f.fsf@pmade.com> (Peter Jones's message of "Mon\, 19 Oct 2009 17\:16\:36 -0600") 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: Peter Jones Cc: emacs-orgmode@gnu.org Peter Jones writes: > I have a couple of org files that are generated from cronjobs in the > morning. Throughout the day, however, reloading the agenda prompts me > with: > > library.org changed on disk; really edit the buffer? (y, n, r or C-h) > > And it does so every time I reload, even though the file hasn't changed > since this morning. > > Anyone know a workaround for this? I sync my files with git which modifies the on-disk versions separate from my open emacs session. I use M-x org-revert-all-org-buffers to replace the Emacs versions with the more-correct versions on disk (newly updated with git) -- but I don't have automatic updates. I know exactly when the files on disk are newer than my Emacs buffers so I can safely use this function. Make sure you don't have any unsaved information in _any_ org files in emacs before you run this to sync your emacs buffers with the on disk files -- otherwise you'll lose information. HTH, Bernt