all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] revering agenda files
Date: Mon, 12 Apr 2010 16:00:43 -0400	[thread overview]
Message-ID: <87zl18phjo.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <874ojgmpr4.fsf@kotik.lan> ("Łukasz Stelmach"'s message of "Mon\, 12 Apr 2010 21\:31\:43 +0200")

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> 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) 
>
>    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

  parent reply	other threads:[~2010-04-12 20:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-12 19:31 [BUG] revering agenda files Łukasz Stelmach
2010-04-12 19:59 ` Richard Riley
2010-04-12 20:30   ` Łukasz Stelmach
2010-04-12 20:45     ` Dale P. Smith
2010-04-12 20:00 ` Bernt Hansen [this message]
2010-04-12 20:26   ` Łukasz Stelmach
2010-04-12 21:20     ` Bernt Hansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zl18phjo.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=lukasz.stelmach@iem.pw.edu.pl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.