So there technically isn't a bug here. To display a link with a description, you have two options: Change the value of `org-link-preview-include-descriptive' to t or type `C-u 1 C-c C-x C-v' over the link that you want to preview. If you have a list of images that you want to preview, you need to type C-u C-u 11 C-c C-x C-v'. This is the docstring of `org-link-preview-include-descriptive':
"When non-nil, enable descriptive link previewing in `org-link-preview'. When nil, descriptive link previewing can be enabled on a per-call basis using `\\[universal-argument]' 1. But, I will admit, this behavior is confusing. It's not clear to me why `org-link-preview-region' doesn't preview links with descriptions by default. `org-link-preview-region' uses the same code to get the value of links, whether or not they have a description. Furthermore, this decision completely clashes with the default behavior of `org--image-yank-media-handler'. The default value for `org-yank-image-save-method' is 'attach. 'attach means that `org--image-yank-media-handler' will call `org-link-make-string-for-buffer' with the value of `org-attach-attach' when you yank an image.`org-attach-attach' returns a list (LINK DESCRIPTION), representing the file stored. So by default, yanked images are not previewable. @Ihor Radchenko Is there some sort of historical or code reason that extra configuration is needed in order to preview links with descriptions? Le jeu. 19 nov. 2026 à 09:08, Earl Chase <[email protected]> a écrit : > > Owned. I will take a look at this. > > On Mon, Nov 16, 2026, 3:07 PM <[email protected]> wrote: >> >> Hello, I am experiencing this issue with yank-media: >> 1. I make a screenshot/I copy an image from some source, so an image is >> in my clipboard >> 2. I try to yank it in the 'org-mode' buffer using 'yank-media' >> 3. I do `C-u C-u C-c C-x C-v` ('org-link-preview' with "double" arg) >> 4. No image is displayed inline. >> >> I'd expect to see all the images displayed after step 3. >> It seems that the issue arises from how 'yank-media' insert the link to >> the buffer, as it adds description. The images shouldn't have that, if >> I'm not mistaken. After this description is removed, and >> 'org-link-preview' >> is called again, everything seems to work just fine. >> >> >> Emacs : GNU Emacs 31.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version >> 3.24.52, cairo version 1.18.4) >> Package: Org mode version 9.8.7 (release_9.8.7 @ >> /usr/share/emacs/31.1/lisp/org/) >> >> current state: >> ============== >> (setq >> org-special-ctrl-a/e t >> org-yank-image-file-name-function 'org-yank-image-autogen-filename >> org-persist-before-write-hook >> '(org-element--cache-persist-before-write) >> org-speed-command-hook '(org-speed-command-activate >> org-babel-speed-command-activate) >> org-persist-after-read-hook '(org-element--cache-persist-after-read) >> org-confirm-elisp-link-function 'yes-or-no-p >> org-replace-disputed-keys t >> org-mode-hook '(org-bullets-mode >> #[0 "\300\301\302\303\304$\207" [add-hook >> change-major-mode-hook >> org-fold-show-all append local] 5] >> #[0 "\300\301\302\303\304$\207" [add-hook >> change-major-mode-hook >> org-babel-show-result-all append local] 5] >> org-babel-result-hide-spec org-babel-hide-all-hashes >> #[0 "\301\211 \207" [imenu-create-index-function >> org-imenu-get-tree] >> 2] jaaan/org-mode-setup >> #[nil ((display-line-numbers-mode 0)) nil]) >> org-load-hook '(ergoemacs-install-org-bindings) >> org-support-shift-select t >> org-confirm-shell-link-function 'yes-or-no-p >> org-archive-hook '(org-attach-archive-delete-maybe) >> org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) >> org-metaup-hook '(org-babel-load-in-session-maybe) >> org-occur-hook '(org-first-headline-recenter) >> org-ellipsis " ▾" >> org-enforce-todo-dependencies t >> org-bullets-bullet-list '("◉" "●" "○" "⬟" "⬠" "⬦" "⬥") >> org-bibtex-headline-format-function 'org-bibtex-headline-format-default >> org-link-parameters '(("attachment" :follow org-attach-follow :complete >> org-attach-complete-link :preview org-attach-preview-file) >> ("id" :follow org-id-open :store >> org-id-store-link-maybe >> :complete org-id-complete :insert-description >> org-id-description) >> ("eww" :follow org-eww-open :store org-eww-store-link) >> ("rmail" :follow org-rmail-open :store >> org-rmail-store-link) >> ("mhe" :follow org-mhe-open :store org-mhe-store-link) >> ("irc" :follow org-irc-visit :store >> org-irc-store-link :export >> org-irc-export) >> ("info" :follow org-info-open :export org-info-export >> :store >> org-info-store-link :insert-description >> org-info-description-as-command) >> ("gnus" :follow org-gnus-open :store >> org-gnus-store-link) >> ("docview" :follow org-docview-open :export >> org-docview-export >> :store org-docview-store-link) >> ("bibtex" :follow org-bibtex-open :store >> org-bibtex-store-link) >> ("bbdb" :follow org-bbdb-open :export org-bbdb-export >> :complete >> org-bbdb-complete-link :insert-description >> org-bbdb-describe-link :store org-bbdb-store-link) >> ("w3m" :store org-w3m-store-link) ("doi" :follow >> org-link-doi-open :export org-link-doi-export) >> ("file+sys") ("file+emacs") ("shell" :follow >> org-link--open-shell) >> ("news" :follow #[514 "\301\300\302 Q \"\207" ["news" >> browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("mailto" :follow #[514 "\301\300\302 Q \"\207" >> ["mailto" >> browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("https" :follow #[514 "\301\300\302 Q \"\207" >> ["https" >> browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("http" :follow #[514 "\301\300\302 Q \"\207" ["http" >> browse-url ":"] 6 "\n\n(fn URL ARG)"]) >> ("ftp" :follow #[514 "\301\300\302 Q \"\207" ["ftp" >> browse-url >> ":"] 6 "\n\n(fn URL ARG)"]) >> ("shortdoc" :follow org-link--open-shortdoc :store >> org-link--store-shortdoc :complete >> org-link--complete-shortdoc) >> ("help" :follow org-link--open-help :store >> org-link--store-help) >> ("file" :complete org-link-complete-file :preview >> org-link-preview-file) >> ("elisp" :follow org-link--open-elisp)) >> org-todo-keyword-faces '(("REJECTED" :foreground "red" :weight bold >> :box t) ("BLOCKED" :foreground "yellow" :weight bold :box t) >> ("PLANNED" :foreground "gray" :weight bold :box t) >> ("TO_READ" >> :foreground "gray" :weight bold :box t) >> ("READING" :foreground "orange" :weight bold :box >> t) >> ("FINISHED" :foreground "green" :weight bold :box >> t) ("OK" >> :foreground "green" :weight bold :box t) >> ("NOK" :foreground "red" :weight bold :box t) >> ("UNKNOWN" >> :foreground "gray" :weight bold :box t)) >> org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe >> org-babel-header-arg-expand) >> org-present-mode-quit-hook '(jaaan/end-presentation) >> org-agenda-before-write-hook '(org-agenda-add-entry-text) >> org-metadown-hook '(org-babel-pop-to-session-maybe) >> org-tab-first-hook '(org-babel-hide-result-toggle-maybe >> org-babel-header-arg-expand) >> org-sort-function 'string-collate-lessp >> org--warnings nil >> org-babel-pre-tangle-hook '(save-buffer) >> org-agenda-prefix-format '((agenda . " %i %-12:c%?-12t% s") (todo . " >> %i %-12:c %b") (tags . " %i %-12:c") >> (search . " %i %-12:c")) >> org-export-before-parsing-hook '(org-attach-expand-links) >> org-link-shell-confirm-function 'yes-or-no-p >> org-fold-core-isearch-open-function 'org-fold--isearch-reveal >> outline-isearch-open-invisible-function 'outline-isearch-open-invisible >> org-src-mode-hook '(org-src-babel-configure-edit-buffer >> org-src-mode-configure-edit-buffer) >> org-agenda-loop-over-headlines-in-active-region nil >> org-present-mode-hook '(jaaan/start-presentation) >> org-list-allow-alphabetical t >> org-link-elisp-confirm-function 'yes-or-no-p >> org-cycle-hook '(org-cycle-hide-archived-subtrees >> org-cycle-show-empty-lines >> org-cycle-optimize-window-after-visibility-change >> org-cycle-display-link-previews) >> org-persist-before-read-hook '(org-element--cache-persist-before-read) >> ) >> >>
