branch: externals/org
commit 7c61a3a801c2e16991cd0c139b9ad00dd79c9765
Author: Ihor Radchenko <yanta...@gmail.com>
Commit: Ihor Radchenko <yanta...@gmail.com>

    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....@ntnu.no
---
 lisp/org.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/org.el b/lisp/org.el
index 220210992e..8f3f00a379 100644
--- a/lisp/org.el
+++ b/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)))
 

Reply via email to