From 3073cb181f607a0cc65031fe68e86cf73347e152 Mon Sep 17 00:00:00 2001 From: Jonas Hoersch Date: Tue, 29 Oct 2013 17:07:49 +0100 Subject: [PATCH] org-inlinetask: [FIX] correct inlinetask cycling org-show-entry can't be used to expand a folded inlinetask, as it relies on org-outline-regexp to find the end of the entry, which has been altered to exclude inline-tasks by org-cycle. instead show the inline task directly using the bounds already computed by org-inlinetask-toggle-visibility. --- lisp/org-inlinetask.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el index 112d3df..ca7572b 100644 --- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -315,7 +315,8 @@ If the task has an end part, also demote it." ((= end start)) ;; Inlinetask was folded: expand it. ((get-char-property (1+ start) 'invisible) - (org-show-entry)) + (outline-flag-region start end nil) + (org-cycle-hide-drawers 'children)) (t (outline-flag-region start end t))))) (defun org-inlinetask-remove-END-maybe () -- 1.8.4