* Agenda and Reloading Changed Files
@ 2009-10-19 23:16 Peter Jones
2009-10-20 0:47 ` Bernt Hansen
2009-10-27 16:39 ` Jean-Marie Gaillourdet
0 siblings, 2 replies; 4+ messages in thread
From: Peter Jones @ 2009-10-19 23:16 UTC (permalink / raw)
To: emacs-orgmode
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?
--
Peter Jones - 303-219-0226
http://contextualdevelopment.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agenda and Reloading Changed Files
2009-10-19 23:16 Agenda and Reloading Changed Files Peter Jones
@ 2009-10-20 0:47 ` Bernt Hansen
2009-10-20 10:25 ` Chris Gray
2009-10-27 16:39 ` Jean-Marie Gaillourdet
1 sibling, 1 reply; 4+ messages in thread
From: Bernt Hansen @ 2009-10-20 0:47 UTC (permalink / raw)
To: Peter Jones; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agenda and Reloading Changed Files
2009-10-20 0:47 ` Bernt Hansen
@ 2009-10-20 10:25 ` Chris Gray
0 siblings, 0 replies; 4+ messages in thread
From: Chris Gray @ 2009-10-20 10:25 UTC (permalink / raw)
To: emacs-orgmode
Bernt Hansen wrote:
> 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.
I got burned by that a couple of times, so now I use a script that does
the following:
--8<---------------cut here---------------start------------->8---
emacsclient -e "(save-some-buffers t)"
for dir in $DIRS; do
cd "$dir"
git pull
done
emacsclient -e "(org-revert-all-org-buffers)"
--8<---------------cut here---------------end--------------->8---
Cheers,
Chris
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agenda and Reloading Changed Files
2009-10-19 23:16 Agenda and Reloading Changed Files Peter Jones
2009-10-20 0:47 ` Bernt Hansen
@ 2009-10-27 16:39 ` Jean-Marie Gaillourdet
1 sibling, 0 replies; 4+ messages in thread
From: Jean-Marie Gaillourdet @ 2009-10-27 16:39 UTC (permalink / raw)
To: emacs-orgmode
Hi Peter,
there is auto-revert-mode in Emacs 23. I don't know about earlier
versions. I have (global-auto-revert-mode t) in my .emacs, which
makes Emacs revert all buffers without unsaved data when idle. This
should reduce the amount of questions to cases where you would loose
data when reverting.
Regards,
Jean-Marie
At Mon, 19 Oct 2009 17:16:36 -0600,
Peter Jones wrote:
>
> 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?
>
> --
> Peter Jones - 303-219-0226
> http://contextualdevelopment.com
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-27 16:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-19 23:16 Agenda and Reloading Changed Files Peter Jones
2009-10-20 0:47 ` Bernt Hansen
2009-10-20 10:25 ` Chris Gray
2009-10-27 16:39 ` Jean-Marie Gaillourdet
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).