emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Bug: Inlinetask bodies begun with a link (or other invisible element


From: Anders Johansson
Subject: [O] Bug: Inlinetask bodies begun with a link (or other invisible elements) are not folded correctly
Date: Sun, 17 May 2015 17:23:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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/)



reply via email to

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