emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* update agenda on file modification
@ 2011-12-15 12:38 sergio
  2011-12-16  4:53 ` Herbert Sitz
  0 siblings, 1 reply; 3+ messages in thread
From: sergio @ 2011-12-15 12:38 UTC (permalink / raw)
  To: emacs-orgmode

Hello.

Is it possible to update agenda on .org file modification?

-- 
sergio.

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

* Re: update agenda on file modification
  2011-12-15 12:38 update agenda on file modification sergio
@ 2011-12-16  4:53 ` Herbert Sitz
  2011-12-17  0:10   ` sergio
  0 siblings, 1 reply; 3+ messages in thread
From: Herbert Sitz @ 2011-12-16  4:53 UTC (permalink / raw)
  To: emacs-orgmode

sergio <mailbox <at> sergio.spb.ru> writes:
> 
> Is it possible to update agenda on .org file modification?
>

Do you mean whenever a buffer changes?  If so then I think the answer is No,
and you wouldn't want it to, since you frequently are working in agenda and
causing changes to the document buffers.  This has been discussed before and 
even if performance was not a problem there are reasons for not regenerating 
while you're in agenda.

There's a function that will regenerate the agenda after an idle time of x 
seconds:
http://orgmode.org/worg/org-hacks.html#sec-1-8-11 

I assume it could be modified to check for changed files on disk, if you 
wanted to use that as trigger for regeneration.

-- Herb

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

* Re: update agenda on file modification
  2011-12-16  4:53 ` Herbert Sitz
@ 2011-12-17  0:10   ` sergio
  0 siblings, 0 replies; 3+ messages in thread
From: sergio @ 2011-12-17  0:10 UTC (permalink / raw)
  To: emacs-orgmode

On 12/16/2011 08:53 AM, Herbert Sitz wrote:

> This has been discussed before and even if performance was not
> a problem there are reasons for not regenerating while you're in
> agenda.

OK. May be are right, and update agenda on buffer save or get used to
update it manually is better, but what are the main reasons not to
update agenda by buffer change (except performance)? Could you give me
a link to that discussion?

> There's a function that will regenerate the agenda after an idle time
> of x seconds: http://orgmode.org/worg/org-hacks.html#sec-1-8-11
I think http://orgmode.org/worg/org-hacks.html#sec-1-8-12 (refresh the
agenda view regularly) is more suitable. I see the only one reason for
regular agenda update --- keep "now" line up to date and run update
every minute. But how to synchronize this with minute start (zero second
of each minute)?

> I assume it could be modified to check for changed files on disk, if you 
> wanted to use that as trigger for regeneration.
Via after-save-hook?

-- 
sergio.

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

end of thread, other threads:[~2011-12-17  0:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-15 12:38 update agenda on file modification sergio
2011-12-16  4:53 ` Herbert Sitz
2011-12-17  0:10   ` sergio

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