org.el (org-entry-blocked-p): Don't set the buffer as modified
commitaa3786bc20b03cb81f8af4734f367afadb685941
authorBastien Guerry <bzg@altern.org>
Sat, 29 Dec 2012 08:39:42 +0000 (29 09:39 +0100)
committerBastien Guerry <bzg@altern.org>
Sat, 29 Dec 2012 08:39:42 +0000 (29 09:39 +0100)
tree1db42e1a52ba4a683943ad3028410cc59f64f96a
parentbdbdc4cb2c7f247913e371239117299f1c6820f5
org.el (org-entry-blocked-p): Don't set the buffer as modified

* org.el (org-blocker-hook): Update the docstring to mention
that functions in this hook should not modify the buffer.
(org-trigger-hook): Small docstring fix.
(org-entry-blocked-p): Use `with-buffer-modified-unmodified'
so that the function never modifies the buffer.

Thanks to Sven Bretfeld for reporting this.

When building the agenda, checking for blocked items should not
set the buffers as modified, otherwise exiting the agenda will ask
for confirmation each time it kills a buffer.
lisp/org.el