emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-unmodified asks to revert buffer if file was modified outsid


From: Bastien
Subject: Re: [O] org-unmodified asks to revert buffer if file was modified outside emacs
Date: Sat, 23 Feb 2013 11:33:45 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux)

Hi Nicolas,

"Nicolas Richard" <address@hidden> writes:

> Short story is : if you call org-agenda-list and some agenda files have
> been modified outside emacs (e.g. by some revision control system), the
> command fails if the user choose to revert the file when asked, leaving
> a blank agenda in which 'g' does not work. Does it need a fix ? Which
> fix ?

Good questions.

I think it's acceptable to get this warning when an agenda file has
been changed outside of Emacs.

But having it twice is clearly wrong.

The problems lies in `org-agenda-prepare-buffers' which modifies the
properties of agenda files.  The deeper problem comes from Emacs, as
IMHO changing the properties of the buffer should be fine even when
the file has been changed outside, because the text properties of
the buffer are part of the buffer, not of the file.

remove-text-properties, set-text-properties etc. always ask for a
confirmation when the underlying file has been changed outside Emacs.

So for now I don't know how to fix this in Org.

I will ping Emacs developers for the rational behind the current
behavior of remove-text-properties and friends.

Thanks,

-- 
 Bastien



reply via email to

[Prev in Thread] Current Thread [Next in Thread]