Function: svg-insert-image

svg-insert-image is a byte-compiled function defined in svg.el.gz.

Signature

(svg-insert-image SVG)

Documentation

Insert SVG as an image at point.

If the SVG is later changed, the image will also be updated.

Source Code

;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-insert-image (svg)
  "Insert SVG as an image at point.
If the SVG is later changed, the image will also be updated."
  (let ((image (svg-image svg))
	(marker (point-marker)))
    (insert-image image)
    (dom-set-attribute svg :image marker)))