From mboxrd@z Thu Jan 1 00:00:00 1970 From: coroa@online.de (Jonas =?utf-8?Q?H=C3=B6rsch?=) Subject: [PATCH] Re: [BUG] org-cycle on hidden inline task makes also other inline tasks visible Date: Tue, 29 Oct 2013 17:46:02 +0100 Message-ID: <87a9hsc9f9.fsf@kafka.loc> References: <87ioyftsdn.fsf@kafka.loc> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57906) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCQy-0003iZ-0D for emacs-orgmode@gnu.org; Tue, 29 Oct 2013 12:46:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbCQs-0007MF-Eq for emacs-orgmode@gnu.org; Tue, 29 Oct 2013 12:46:23 -0400 Received: from plane.gmane.org ([80.91.229.3]:55338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbCQs-0007Lk-7R for emacs-orgmode@gnu.org; Tue, 29 Oct 2013 12:46:18 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VbCQq-0006GF-Fu for emacs-orgmode@gnu.org; Tue, 29 Oct 2013 17:46:16 +0100 Received: from 91-64-62-247-dynip.superkabel.de ([91.64.62.247]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Oct 2013 17:46:16 +0100 Received: from coroa by 91-64-62-247-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Oct 2013 17:46:16 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-org-inlinetask-FIX-correct-inlinetask-cycling.patch Content-Transfer-Encoding: quoted-printable From=203073cb181f607a0cc65031fe68e86cf73347e152 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. =2D-- 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 =2D-- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -315,7 +315,8 @@ If the task has an end part, also demote it." ((=3D end start)) ;; Inlinetask was folded: expand it. ((get-char-property (1+ start) 'invisible) =2D (org-show-entry)) + (outline-flag-region start end nil) + (org-cycle-hide-drawers 'children)) (t (outline-flag-region start end t))))) =20 (defun org-inlinetask-remove-END-maybe () =2D-=20 1.8.4 --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJSb+ZNAAoJECrXDlJwTJyRI94P/AhEaQ1hLSHwmATMiJxPOI4O qeGTyYN36HfZ7raTAODFlJgRyLTFWA+4e3Vncypag17/311WsYoHjgSCzG8sjA0V XtTKnEJXMp7LcnREeYd2N5jXi2sN8Af8UhM2KoVCOObwNlHRZv0cNGLhFQ+aJJHn yhg8ck0yrkQWc0uqsKRAbp8uXgomZ3ptguQ4+2lHneQA2Z3J1+dgEWE2k4kCAAF1 7Q1STTcCD/e5mFnNlP4DLQFte/zsox8wDvzC/24Umkig+UAIm/hBP8Oq8XJRvjPR 611cewP1AsekBBLx6uzDRIlUZDbIXFfcXpNSGgKtI6AN5Mp6+Vqw0b9r+sKpRYbA IEUTIevrGLEuaBGd4Zy3SgAgrVEPtV6fvD/1AMy9k9iowDW9aGX/ASHS+lekGCfx SXuVUMzSwkgvNLnK0LGclI6BvEptVg1vbgcv2nRXwcXl4lhXIcwi2frF3btYryGJ 5hHvoz+OsI5vjrtyaL9oRpYEPOesqUA2p3N1iZwH7vB6mXXeMgZmKkbs+HTn7SGg NAH+LD3PPZXgC47LoiEdN62kGCgwdAWLxITmUAbmScXcq351v7YzWR03VYrW6o93 Cgmz9bQd8CRnOt2vXNQ68kN+MaGSwinhogpjXHrhOUTY+3OlcBRM5nfJhmmtBj5+ xrraYrXFHvtEwxAGB3W7 =KPE7 -----END PGP SIGNATURE----- --==-=-=--