diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-02-21 15:33:00 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-02-21 15:33:00 +0100 |
commit | 29fe5a7d7f24d131567e87672c832d4cae1cb799 (patch) | |
tree | 604e29b15da8de3701115f1412973ad85d2c6b9a | |
parent | 0f70354b3200a55d45d463a1cbc063615eaab53a (diff) | |
download | org-mode-29fe5a7d7f24d131567e87672c832d4cae1cb799.tar.gz |
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>
-rw-r--r-- | lisp/ox-icalendar.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el index f66e100..297d624 100644 --- a/lisp/ox-icalendar.el +++ b/lisp/ox-icalendar.el @@ -317,7 +317,7 @@ A headline is blocked when either done first or is a child of a blocked grandparent entry." (or ;; 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)) info 'first-match) ;; Check :ORDERED: node property. |