emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [PATCH] Re: [BUG] org-cycle on hidden inline task makes also other i


From: Jonas Hörsch
Subject: [O] [PATCH] Re: [BUG] org-cycle on hidden inline task makes also other inline tasks visible
Date: Tue, 29 Oct 2013 17:46:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

hi,

ok, this has been bothering me long enough. the attached patch fixes the
issue [1] for me.

cheers,
jonas

Footnotes:

[1] http://thread.gmane.org/gmane.emacs.orgmode/76034
From 3073cb181f607a0cc65031fe68e86cf73347e152 Mon Sep 17 00:00:00 2001
From: Jonas Hoersch <address@hidden>
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

Attachment: pgph82xc9xrsX.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]