From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [Bug] Bug in org-depend, was: Strange behavior of property-search and org-tags-view Date: Tue, 25 Dec 2012 05:08:10 +0100 Message-ID: <87bodiydsl.fsf@bzg.ath.cx> References: <87d2zxv86n.fsf@gmx.ch> <87390pjf02.fsf@gmx.ch> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnM59-0004du-SQ for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 23:25:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TnM56-0004Bk-LP for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 23:25:35 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:37664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TnLoL-0000Rq-6H for emacs-orgmode@gnu.org; Mon, 24 Dec 2012 23:08:13 -0500 Received: by mail-we0-f172.google.com with SMTP id r3so3523023wey.31 for ; Mon, 24 Dec 2012 20:08:11 -0800 (PST) In-Reply-To: <87390pjf02.fsf@gmx.ch> (Sven Bretfeld's message of "4 Nov 2012 21:21:33 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sven Bretfeld Cc: emacs-org --=-=-= Content-Type: text/plain Hi Sven, "Sven Bretfeld" 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. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=org-entry-blocked-p.patch 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. --=-=-= Content-Type: text/plain -- Bastien --=-=-=--