From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [BUG] revering agenda files Date: Mon, 12 Apr 2010 16:00:43 -0400 Message-ID: <87zl18phjo.fsf@gollum.intra.norang.ca> References: <874ojgmpr4.fsf@kotik.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O1PoX-0000MW-JC for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 16:00:57 -0400 Received: from [140.186.70.92] (port=52149 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O1PoW-0000LW-A6 for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 16:00:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O1PoU-0006Xt-37 for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 16:00:56 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:52688) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O1PoU-0006Xl-0q for emacs-orgmode@gnu.org; Mon, 12 Apr 2010 16:00:54 -0400 In-Reply-To: <874ojgmpr4.fsf@kotik.lan> (=?utf-8?Q?=22=C5=81ukasz?= Stelmach"'s message of "Mon\, 12 Apr 2010 21\:31\:43 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?=C5=81ukasz?= Stelmach Cc: emacs-orgmode@gnu.org =C5=81ukasz Stelmach writes: > Hello. > > I'm not quite sure it is bug indeed but org-mode stops working as usual > when you change the agenda files behind the scenes. I sometimes do it > because I use org-mode on several machines and I keep my files > synchronised with git. Since git-vc.el doesn't provide interface for > git's push pull commands I have to invoke them from outside of Emacs. > When it happens that pull operation alters one of agenda files then: > > 1. When I ask to rebuild agenda I receive a question > > todo.org changed on disk; really edit the buffer? (y, n, r or C-h)= =20 > > one file each time. The question is quite reasonable but it should > pop up for every altered file upon the first attempt to rebuild > agenda. > > 2. Every time I move cursor up or down I get > > if: Wrong type argument: stringp, nil > > when I click a heading, nothing happens and when i press RET on it > > let*: Wrong type argument: integer-or-marker-p, nil > > It stops after few rebuilds. "Few" means the number of updated files. My solution to this is (global-auto-revert-mode t) So if there are no modified buffers and the agenda file changes externally it just automatically updates to what is on disk. That got rid of the annoying message for me. -Bernt