forked from mirrors/org-mode
ox-icalendar: Fix `org-icalendar-blocked-headline-p'
* lisp/ox-icalendar.el (org-icalendar-blocked-headline-p): Only consider children when looking for blocked entries, not the headline itself. Reported-by: Duane Farnsworth <dfarnsworth@clarion.edu> <http://lists.gnu.org/r/emacs-orgmode/2019-02/msg00275.html>
This commit is contained in:
parent
0f70354b32
commit
29fe5a7d7f
|
@ -317,7 +317,7 @@ A headline is blocked when either
|
||||||
done first or is a child of a blocked grandparent entry."
|
done first or is a child of a blocked grandparent entry."
|
||||||
(or
|
(or
|
||||||
;; Check if any child is not done.
|
;; Check if any child is not done.
|
||||||
(org-element-map headline 'headline
|
(org-element-map (org-element-contents headline) 'headline
|
||||||
(lambda (hl) (eq (org-element-property :todo-type hl) 'todo))
|
(lambda (hl) (eq (org-element-property :todo-type hl) 'todo))
|
||||||
info 'first-match)
|
info 'first-match)
|
||||||
;; Check :ORDERED: node property.
|
;; Check :ORDERED: node property.
|
||||||
|
|
Loading…
Reference in a new issue