emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Sven Bretfeld <sven.bretfeld@gmx.ch>
Cc: emacs-org <emacs-orgmode@gnu.org>
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	[thread overview]
Message-ID: <87bodiydsl.fsf@bzg.ath.cx> (raw)
In-Reply-To: <87390pjf02.fsf@gmx.ch> (Sven Bretfeld's message of "4 Nov 2012 21:21:33 +0100")

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

Hi Sven,

"Sven Bretfeld" <sven.bretfeld@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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: org-entry-blocked-p.patch --]
[-- Type: text/x-patch, Size: 926 bytes --]

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.

[-- Attachment #3: Type: text/plain, Size: 14 bytes --]


-- 
 Bastien

  reply	other threads:[~2012-12-25  4:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-01 12:06 [Bug] Strange behavior of property-search and org-tags-view Sven Bretfeld
2012-11-04 20:21 ` [Bug] Bug in org-depend, was: " Sven Bretfeld
2012-12-25  4:08   ` Bastien [this message]
2012-12-29  9:26     ` Bastien

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=87bodiydsl.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=sven.bretfeld@gmx.ch \
    /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).