From d80bdb7431548cbb37cb72cd18fdff52c4ccf49f Mon Sep 17 00:00:00 2001 From: Jonas Hoersch Date: Tue, 29 Oct 2013 17:07:49 +0100 Subject: [PATCH] org-inlinetask: fix inlinetask unfolding * lisp/org-inlinetask.el (org-inlinetask-toggle-visibility): Don't use `org-show-entry` as it cannot unfold an inlinetask properly. TINYCHANGE --- 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 112d3df20..ca7572bcc 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 ()