Function: gnus-html-display-image
gnus-html-display-image is a byte-compiled function defined in
gnus-html.el.gz.
Signature
(gnus-html-display-image URL START END &optional ALT-TEXT)
Documentation
Display image at URL on text from START to END.
Use ALT-TEXT for the image string.
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-html.el.gz
(defun gnus-html-display-image (url _start _end &optional alt-text)
"Display image at URL on text from START to END.
Use ALT-TEXT for the image string."
(or alt-text (setq alt-text "*"))
(if (string-match "\\`cid:" url)
(let ((handle (mm-get-content-id (substring url (match-end 0)))))
(when handle
(gnus-html-put-image (mm-with-part handle (buffer-string))
url alt-text)))
(if (gnus-html-cache-expired url gnus-html-image-cache-ttl)
;; We don't have it, so schedule it for fetching
;; asynchronously.
(gnus-html-schedule-image-fetching
(current-buffer)
(list url alt-text))
;; It's already cached, so just insert it.
(gnus-html-put-image (gnus-html-get-image-data url) url alt-text))))