diff --git a/lisp/org-element.el b/lisp/org-element.el index 1fbedd137..911e4e176 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -4183,6 +4183,7 @@ otherwise. Modes can be either `first-section', `item', (if parentp (case type (headline 'section) + (inlinetask 'planning) (plain-list 'item) (property-drawer 'node-property) (section 'planning) diff --git a/testing/lisp/test-org-element.el b/testing/lisp/test-org-element.el index 621702b50..560d9cf8d 100644 --- a/testing/lisp/test-org-element.el +++ b/testing/lisp/test-org-element.el @@ -1221,17 +1221,28 @@ Contents ;; Planning info. (should (org-test-with-temp-text " -*************** Task +*************** Task DEADLINE: <2012-03-29 thu.> *************** END" - (forward-line) (org-element-property :deadline (org-element-at-point)))) + (should + (eq 'planning + (org-test-with-temp-text " +*************** Task +DEADLINE: <2012-03-29 thu.> +*************** END" + (org-element-type (org-element-at-point))))) (should-not (org-test-with-temp-text " -*************** Task +*************** Task DEADLINE: <2012-03-29 thu.>" - (forward-line) (org-element-property :deadline (org-element-at-point)))) + (should-not + (eq 'planning + (org-test-with-temp-text " +*************** Task +DEADLINE: <2012-03-29 thu.>" + (org-element-type (org-element-at-point))))) ;; Priority. (should (eq