From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anders Johansson Subject: Bug: Inlinetask bodies begun with a link (or other invisible elements) are not folded correctly Date: Sun, 17 May 2015 17:23:19 +0200 Message-ID: <5558B267.4040909@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu0Pa-0000vy-Og for emacs-orgmode@gnu.org; Sun, 17 May 2015 11:23:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yu0PX-00079V-Ij for emacs-orgmode@gnu.org; Sun, 17 May 2015 11:23:30 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:35882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yu0PX-000790-Bf for emacs-orgmode@gnu.org; Sun, 17 May 2015 11:23:27 -0400 Received: by lagv1 with SMTP id v1so185960840lag.3 for ; Sun, 17 May 2015 08:23:22 -0700 (PDT) Received: from [130.238.77.6] (pc6.kvk.uu.se. [130.238.77.6]) by mx.google.com with ESMTPSA id ci10sm1943270lad.35.2015.05.17.08.23.21 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 May 2015 08:23:21 -0700 (PDT) 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 Hi, I had an inlinetask that started with a link, like this: **************** Inlinetask heading [[file:filename][link desc]] some text. Some more text. **************** END It didn't fold on TAB. Looking into org-inlinetask-toggle-visibility I see ;; Inlinetask was folded: expand it. ((get-char-property (1+ start) 'invisible) which is true for all kind of chars that are invisible I guess (even if the value of the 'invisible property is 'org-link) A quick test showed that adding a test for if the hiding is "outline" worked: ;; Inlinetask was folded: expand it. ((eq 'outline (get-char-property (1+ start) 'invisible)) I don't know if this has any unwanted side-effects though. Or if this should be avoided for some reason. This is using the latest org from git. Cheers, Anders Johansson Emacs : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9) of 2015-03-21 on kissel, modified by Debian Package: Org-mode version 8.2.10 (release_8.2.10-417-g0e5069 @ /home/aj/kodat/elisp/org-mode/)