unofficial mirror of emacs-orgmode@gnu.org
 help / color / mirror / 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

unofficial mirror of emacs-orgmode@gnu.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/orgmode/0 orgmode/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 orgmode orgmode/ https://yhetil.org/orgmode \
		emacs-orgmode@gnu.org
	public-inbox-index orgmode

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git