Hi Sven,

"Sven Bretfeld" <sven.bretf...@gmx.ch> writes:

> It took me a good hour to find the package that produced the problem.

Thanks for this.

Please let me know if the attached patch fixes the problem for you.

diff --git a/lisp/org.el b/lisp/org.el
index 0fabaf6..e62ba25 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -11770,15 +11770,16 @@ changes because there are unchecked boxes in this entry."
 
 (defun org-entry-blocked-p ()
   "Is the current entry blocked?"
-  (if (org-entry-get nil "NOBLOCKING")
-      nil ;; Never block this entry
-    (not
-     (run-hook-with-args-until-failure
-      'org-blocker-hook
-      (list :type 'todo-state-change
-	    :position (point)
-	    :from 'todo
-	    :to 'done)))))
+  (with-buffer-modified-unmodified
+   (if (org-entry-get nil "NOBLOCKING")
+       nil ;; Never block this entry
+     (not
+      (run-hook-with-args-until-failure
+       'org-blocker-hook
+       (list :type 'todo-state-change
+	     :position (point)
+	     :from 'todo
+	     :to 'done))))))
 
 (defun org-update-statistics-cookies (all)
   "Update the statistics cookie, either from TODO or from checkboxes.
-- 
 Bastien

Reply via email to