From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Bug?] Link fontification in captions Date: Thu, 30 Apr 2015 00:23:31 +0200 Message-ID: <874mnyh8v0.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnaMs-0002wV-B2 for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 18:22:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YnaMr-0002XE-H9 for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 18:22:10 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:55420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YnaMr-0002Wg-BC for emacs-orgmode@gnu.org; Wed, 29 Apr 2015 18:22:09 -0400 In-Reply-To: (Jacob Gerlach's message of "Wed, 29 Apr 2015 18:35:52 +0000") 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: Jacob Gerlach Cc: Org-mode Hello, Jacob Gerlach 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