org.el: Display the blocking heading when a TODO state change is blocked.
commitcf9838febd18255b927280e1941d0907caa05e76
authorBastien Guerry <bzg@altern.org>
Wed, 12 Dec 2012 14:59:27 +0000 (12 15:59 +0100)
committerBastien Guerry <bzg@altern.org>
Wed, 12 Dec 2012 14:59:27 +0000 (12 15:59 +0100)
treea9fde42f931c7233ca2dc63a222bd31c201f9105
parent1bfea39fd497c24f3b2ca01b3438b2bcc7cdfce4
org.el: Display the blocking heading when a TODO state change is blocked.

* org.el (org-block-entry-blocking): New variable.
(org-todo): Use it.  Also use `user-error' when a TODO state
change is blocked.
(org-block-todo-from-children-or-siblings-or-parent): Display
`org-block-entry-blocking' in the user-error message.

Thanks to Mirko Vukovic for triggering this change.
lisp/org.el