Skip to content

Commit 7c61a3a

Browse files
committed
org-unfontify-region: Handle invisible parts of links
* lisp/org.el (org-unfontify-region): Reveal folded parts of links. Fixes https://orgmode.org/list/m2wndakbk0.fsf@ntnu.no
1 parent e7e37c5 commit 7c61a3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lisp/org.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5836,6 +5836,8 @@ If TAG is a number, get the corresponding match group."
58365836
'(mouse-face t keymap t org-linked-text t
58375837
invisible t intangible t
58385838
org-emphasis t))
5839+
(org-fold-region beg end nil 'org-link)
5840+
(org-fold-region beg end nil 'org-link-description)
58395841
(org-fold-core-update-optimisation beg end)
58405842
(org-remove-font-lock-display-properties beg end)))
58415843

0 commit comments

Comments
 (0)