Ihor Radchenko <[email protected]> writes:

> stardiviner <[email protected]> writes:
>
>> Thanks for point out the docstring. I followed you advices to modified the
>> patch. patch attached.
>
> Applied, onto main, with amendments.
> I fixed compiler warnings, and reworded the manual and ORG-NEWS entries
> to flow better.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d14d0c367

Thanks, after I pull down latest update, I found one problem,
`org-cycle-hook` funciton `org-cycle-display-link-previews` is not
working. I figured out that the global option
`org-link-preview-include-descriptive` have not affect in
`org-link-preview-region`. So here is the quick fix patch.

From a97e3c242ce63564487bbac8a48c221d7f204f6b Mon Sep 17 00:00:00 2001
From: stardiviner <[email protected]>
Date: Mon, 31 Aug 2026 18:16:39 +0800
Subject: [PATCH] fixup! d14d0c367

lisp/ol.el (org-link-preview-region): The global option
`org-link-preview-include-descriptive` not affect in
`org-link-preview-region`
---
 lisp/ol.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ol.el b/lisp/ol.el
index d59212355..9480d662f 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -2315,7 +2315,7 @@ (defun org-link-preview-region (&optional include-linked refresh beg end)
              (path (or
                     ;; Link without description or link with description
                     ;; that is requested to be previewed anyway.
-                    (and (or include-linked
+                    (and (or (or org-link-preview-include-descriptive include-linked)
                              (not (org-element-contents-begin link)))
                          (org-element-property :path link))
                     ;; Special case: link with description where
-- 
2.50.1 (Apple Git-155)

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without 
misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

Attachment: signature.asc
Description: PGP signature

Reply via email to