From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Links in #+caption: lines Date: Fri, 05 Jun 2015 07:48:17 +0200 Message-ID: <87iob2ln8e.fsf@gmx.us> References: <87a8wh824p.fsf@gmx.us> <87fv685yi7.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0kUe-0003O6-L3 for emacs-orgmode@gnu.org; Fri, 05 Jun 2015 01:48:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0kUX-0004oX-VT for emacs-orgmode@gnu.org; Fri, 05 Jun 2015 01:48:36 -0400 Received: from mout.gmx.net ([212.227.15.15]:55411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0kUX-0004nu-Ls for emacs-orgmode@gnu.org; Fri, 05 Jun 2015 01:48:29 -0400 In-Reply-To: (Thomas S. Dye's message of "Thu, 04 Jun 2015 14:05:24 -1000") 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: tsd@tsdye.com Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, tsd@tsdye.com (Thomas S. Dye) writes: >> In the patch I guess this is the passage you disagree with: >> >> + ((equal dc1 "+caption:") >> + (org-remove-flyspell-overlays-in (match-end 2) (match-end 0)) >> + (remove-text-properties (match-beginning 0) (match-end 0) >> + '(display t invisible t intangible t= )) >> + (add-text-properties (match-beginning 1) (match-end 3) >> + '(font-lock-fontified t face org-meta-l= ine)) >> + (add-text-properties (match-beginning 6) (+ (match-end 6) 1) >> + '(font-lock-fontified t face org-block)= )) >> >> Perhaps it is possible to let normal fontification rule in region six >> above? > > How would I change this so descriptive links are shown in #+caption: > lines? Try the attached patch. I have done 20 second of testing (I'm traveling) so there may be adverse effects. But it looked OK. Have a nice weekend. =E2=80=94Rasmus --=20 With monopolies the cake is a lie! --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-org.el-Alter-caption-label-formatting.patch >From bdfbda33ee01200f52393884c51e8fc865f8ec0c Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 5 Jun 2015 07:38:13 +0200 Subject: [PATCH] org.el: Alter caption label formatting * org.el (org-fontify-meta-lines-and-blocks-1): Caption labels retain normally formatted. --- lisp/org.el | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 62684e9..81d1022 100755 --- a/lisp/org.el +++ b/lisp/org.el @@ -5951,12 +5951,8 @@ by a #." '(font-lock-fontified t face org-document-info)))) ((equal dc1 "+caption:") (org-remove-flyspell-overlays-in (match-end 2) (match-end 0)) - (remove-text-properties (match-beginning 0) (match-end 0) - '(display t invisible t intangible t)) (add-text-properties (match-beginning 1) (match-end 3) '(font-lock-fontified t face org-meta-line)) - (add-text-properties (match-beginning 6) (+ (match-end 6) 1) - '(font-lock-fontified t face org-block)) t) ((member dc3 '(" " "")) (org-remove-flyspell-overlays-in beg (match-end 0)) -- 2.4.2 --=-=-=--