Ver Fonte

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
Ihor Radchenko há 3 anos atrás
pai
commit
7c61a3a801
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      lisp/org.el

+ 2 - 0
lisp/org.el

@@ -5836,6 +5836,8 @@ If TAG is a number, get the corresponding match group."
 			    '(mouse-face t keymap t org-linked-text t
 					 invisible t intangible t
 					 org-emphasis t))
+    (org-fold-region beg end nil 'org-link)
+    (org-fold-region beg end nil 'org-link-description)
     (org-fold-core-update-optimisation beg end)
     (org-remove-font-lock-display-properties beg end)))