branch: externals/org
commit 57613650857f5fe94c13f024eefe6e269aa1e836
Author: Ihor Radchenko <[email protected]>
Commit: Ihor Radchenko <[email protected]>
lisp/ol.el (org-link-preview): Hint how to expand the scope when no images
to display
---
lisp/ol.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lisp/ol.el b/lisp/ol.el
index c08bfe67bf..5a87f6e5dd 100644
--- a/lisp/ol.el
+++ b/lisp/ol.el
@@ -1970,7 +1970,12 @@ also use `org-link-preview-region'."
scope (length new)
(if include-linked "(including images with
description)"
""))
- (format "[%s] No images to display inline"
scope))))))))))
+ (if (equal scope "buffer")
+ (format "[%s] No images to display inline" scope)
+ (format
+ (substitute-command-keys
+ "[%s] No images to display inline. Use
`\\[universal-argument] \\[universal-argument]' or 11 argument to preview the
whole buffer")
+ scope)))))))))))
(cond
;; Region selected :: display previews in region.
((and beg end)