Function: shr-show-alt-text

shr-show-alt-text is an interactive and byte-compiled function defined in shr.el.gz.

Signature

(shr-show-alt-text)

Documentation

Show the ALT text of the image under point.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defun shr-show-alt-text ()
  "Show the ALT text of the image under point."
  (declare (completion (lambda (_ b) (command-completion-button-p 'shr b))))
  (interactive)
  (let ((text (get-text-property (point) 'shr-alt)))
    (if (not text)
	(message "No image under point")
      (message "%s" (shr-fill-text text)))))