From: Rasmus <rasmus@gmx.us>
To: tsd@tsdye.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Links in #+caption: lines
Date: Fri, 05 Jun 2015 07:48:17 +0200 [thread overview]
Message-ID: <87iob2ln8e.fsf@gmx.us> (raw)
In-Reply-To: <m2a8wff29n.fsf@tsdye.com> (Thomas S. Dye's message of "Thu, 04 Jun 2015 14:05:24 -1000")
[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]
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-line))
>> + (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.
—Rasmus
--
With monopolies the cake is a lie!
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-org.el-Alter-caption-label-formatting.patch --]
[-- Type: text/x-diff, Size: 1085 bytes --]
From bdfbda33ee01200f52393884c51e8fc865f8ec0c Mon Sep 17 00:00:00 2001
From: Rasmus <rasmus@gmx.us>
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
next prev parent reply other threads:[~2015-06-05 5:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 6:08 Links in #+caption: lines Thomas S. Dye
2015-06-03 11:25 ` Rasmus
2015-06-03 16:48 ` Thomas S. Dye
2015-06-03 20:26 ` Rasmus
2015-06-05 0:05 ` Thomas S. Dye
2015-06-05 5:48 ` Rasmus [this message]
2015-06-05 6:57 ` Nicolas Goaziou
2015-06-05 8:41 ` Thomas S. Dye
2015-06-05 15:45 ` Rasmus
2015-06-09 7:22 ` Nicolas Goaziou
2015-06-09 17:18 ` Thomas S. Dye
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iob2ln8e.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=tsd@tsdye.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.