emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Peter Jones <mlists@pmade.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Agenda and Reloading Changed Files
Date: Mon, 19 Oct 2009 20:47:40 -0400	[thread overview]
Message-ID: <87hbtuvqkz.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <863a5frn3f.fsf@pmade.com> (Peter Jones's message of "Mon\, 19 Oct 2009 17\:16\:36 -0600")

Peter Jones <mlists@pmade.com> 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

  reply	other threads:[~2009-10-20  0:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 23:16 Agenda and Reloading Changed Files Peter Jones
2009-10-20  0:47 ` Bernt Hansen [this message]
2009-10-20 10:25   ` Chris Gray
2009-10-27 16:39 ` Jean-Marie Gaillourdet

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hbtuvqkz.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=mlists@pmade.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).