From: Anders Johansson <mejlaandersj@gmail.com>
To: emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <5558B267.4040909@gmail.com> (raw)
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/)
next reply other threads:[~2015-05-17 15:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-17 15:23 Anders Johansson [this message]
2015-05-17 17:24 ` Bug: Inlinetask bodies begun with a link (or other invisible elements) are not folded correctly Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5558B267.4040909@gmail.com \
--to=mejlaandersj@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).