* [Bug?] Link fontification in captions
@ 2015-04-29 18:35 Jacob Gerlach
2015-04-29 22:23 ` Nicolas Goaziou
0 siblings, 1 reply; 2+ messages in thread
From: Jacob Gerlach @ 2015-04-29 18:35 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 520 bytes --]
Hello,
A link in a caption:
#+CAPTION: [[link]]
Initially receives org-link face when I type it. After some action (moving
to the next line or saving the buffer), it is redrawn with org-block face.
In neither case does [[ and ]] receive the invisibility attribute typically
given to links.
In both cases, it receives the typical overlay when moused-over. It also
exports correctly, which is what I really care about.
Could links in captions be given the same treatment as in the rest of the
buffer?
Regards,
Jake
[-- Attachment #2: Type: text/html, Size: 731 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bug?] Link fontification in captions
2015-04-29 18:35 [Bug?] Link fontification in captions Jacob Gerlach
@ 2015-04-29 22:23 ` Nicolas Goaziou
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2015-04-29 22:23 UTC (permalink / raw)
To: Jacob Gerlach; +Cc: Org-mode
Hello,
Jacob Gerlach <jacobgerlach@gmail.com> writes:
> A link in a caption:
>
> #+CAPTION: [[link]]
>
> Initially receives org-link face when I type it.
I cannot reproduce this.
> After some action (moving to the next line or saving the buffer), it
> is redrawn with org-block face.
I can't remember why it is `org-block' instead of `org-meta-line', like
#+caption.
> In neither case does [[ and ]] receive the invisibility attribute typically
> given to links.
This is done on purpose, actually.
> In both cases, it receives the typical overlay when moused-over. It also
> exports correctly, which is what I really care about.
>
> Could links in captions be given the same treatment as in the rest of the
> buffer?
This is quite tricky. Meta line face overrides link face. Underlining
disappears. If link becomes invisible you cannot distinguish it anymore
from regular text.
As a safety measure, links are displayed in full.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-29 22:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-29 18:35 [Bug?] Link fontification in captions Jacob Gerlach
2015-04-29 22:23 ` Nicolas Goaziou
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).