Function: cl-sublis

cl-sublis is an autoloaded and byte-compiled function defined in cl-seq.el.gz.

Signature

(cl-sublis ALIST TREE [KEYWORD VALUE]...)

Documentation

Perform substitutions indicated by ALIST in TREE (non-destructively).

Return a copy of TREE with all matching elements replaced.

Keywords supported: :test :test-not :key

View in manual

Aliases

sublis (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-sublis (cl-alist cl-tree &rest cl-keys)
  "Perform substitutions indicated by ALIST in TREE (non-destructively).
Return a copy of TREE with all matching elements replaced.
\nKeywords supported:  :test :test-not :key
\n(fn ALIST TREE [KEYWORD VALUE]...)"
  (cl--parsing-keywords (:test :test-not :key :if :if-not) ()
    (let ((cl--alist cl-alist))
      (cl--sublis-rec cl-tree))))