emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* refreshing files for agenda building
@ 2021-02-17  8:43 Alan Schmitt
  2021-02-17 11:20 ` Peter Hardy
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Schmitt @ 2021-02-17  8:43 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]

Hello,

I have some files that are changed on disk by an external process, and
it seems that calling org-agenda does not see the changes until I visit
the file in emacs. The buffers are loaded and they are auto-reverted,
but for some reason (some cache somewhere?) their contents are not
up-to-date with what is produced by org-agenda.

Is there a command to refresh such files? Should I programatically visit
them? (And if so, do you have a suggestion as to which command I should
use, I could not find one?)

Thanks,

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: refreshing files for agenda building
  2021-02-17  8:43 refreshing files for agenda building Alan Schmitt
@ 2021-02-17 11:20 ` Peter Hardy
  2021-02-17 13:07   ` Alan Schmitt
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Hardy @ 2021-02-17 11:20 UTC (permalink / raw)
  To: emacs-orgmode


Alan Schmitt writes:
> I have some files that are changed on disk by an external process, and
> it seems that calling org-agenda does not see the changes until I visit
> the file in emacs. The buffers are loaded and they are auto-reverted,
> but for some reason (some cache somewhere?) their contents are not
> up-to-date with what is produced by org-agenda.
>
> Is there a command to refresh such files? Should I programatically visit
> them? (And if so, do you have a suggestion as to which command I should
> use, I could not find one?)

I occasionally run in to this as well, using webdav to sync my org
files. Currently using org-revert-all-org-buffers to revert all Org
buffers, followed by org-agenda-redo (bound to r in the agenda view) to
rebuild the agenda.

The help text for org-revert-all-org-buffers describes a workflow for a
set of org files tracked in a VCS, including the
org-save-all-org-buffers function. I've been getting by just being
rigourous about saving files when I modify them, but adopting a similar
workflow sounds like it could be useful.

--
Pete


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: refreshing files for agenda building
  2021-02-17 11:20 ` Peter Hardy
@ 2021-02-17 13:07   ` Alan Schmitt
  0 siblings, 0 replies; 3+ messages in thread
From: Alan Schmitt @ 2021-02-17 13:07 UTC (permalink / raw)
  To: peter, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

On 2021-02-17 22:20, Peter Hardy <peter@hardy.dropbear.id.au> writes:

> I occasionally run in to this as well, using webdav to sync my org
> files. Currently using org-revert-all-org-buffers to revert all Org
> buffers, followed by org-agenda-redo (bound to r in the agenda view) to
> rebuild the agenda.

Thanks a lot, this is most useful!

Best,

Alan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-02-17 13:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17  8:43 refreshing files for agenda building Alan Schmitt
2021-02-17 11:20 ` Peter Hardy
2021-02-17 13:07   ` Alan Schmitt

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).