Function: svg-remove

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

Signature

(svg-remove SVG ID)

Documentation

Remove the element identified by ID from SVG.

Source Code

;; Defined in /usr/src/emacs/lisp/svg.el.gz
(defun svg-remove (svg id)
  "Remove the element identified by ID from SVG."
  (let* ((node (car (dom-by-id
                     svg
                     (concat "\\`" (regexp-quote id)
                             "\\'")))))
    (when node (dom-remove-node svg node))))