emacs-orgmode@gnu.org archives
 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 17:20:51 -0400	[thread overview]
Message-ID: <87vdbwpdu4.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <87zl18l8mt.fsf@kotik.lan> ("Łukasz Stelmach"'s message of "Mon\, 12 Apr 2010 22\:26\:50 +0200")

Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:

> Bernt Hansen <bernt@norang.ca> writes:
>
>> Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> writes:
>>
>>> 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.
> [...]
>> 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.
>
> I don't want to get rid of those messages completely. Couple of times
> they saved my work (at least) and I don't need to revert org-mode
> buffers that often to feel anoyed by two or three questions. However,
> I'd like them to be asked in one row.

It only gets rid of the questions for buffers that are not modified.
It won't revert buffers if it destroys unsaved changes.
ie. if you modify an agenda file without changing it, then modify the
one on disk then you still get the question as you do now.

It only eliminates the questions for all of your agenda files that are
already saved to disk -- if the disk file changes we just update the
buffer in emacs too.

-Bernt

      reply	other threads:[~2010-04-12 21:21 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
2010-04-12 20:26   ` Łukasz Stelmach
2010-04-12 21:20     ` Bernt Hansen [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87vdbwpdu4.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 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).