From mboxrd@z Thu Jan 1 00:00:00 1970 From: sergio Subject: Re: update agenda on file modification Date: Sat, 17 Dec 2011 04:10:43 +0400 Message-ID: <4EEBDE03.6010204@sergio.spb.ru> References: <4EE9EA61.4090909@sergio.spb.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbhrV-0001xi-GE for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 19:10:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbhrU-0002RA-8k for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 19:10:49 -0500 Received: from outerface.net ([195.70.199.109]:49038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbhrU-0002Qt-0k for emacs-orgmode@gnu.org; Fri, 16 Dec 2011 19:10:48 -0500 Received: from [188.134.66.115] (port=41103 helo=[192.168.1.35]) by outerface.net with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RbhrC-0006pl-0r for emacs-orgmode@gnu.org; Sat, 17 Dec 2011 03:10:31 +0300 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.