Function: cl-nsublis

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

Signature

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

Documentation

Perform substitutions indicated by ALIST in TREE (destructively).

Any matching element of TREE is changed via a call to setcar.

Keywords supported: :test :test-not :key

View in manual

Aliases

nsublis (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-nsublis (cl-alist cl-tree &rest cl-keys)
  "Perform substitutions indicated by ALIST in TREE (destructively).
Any matching element of TREE is changed via a call to `setcar'.
\nKeywords supported:  :test :test-not :key
\n(fn ALIST TREE [KEYWORD VALUE]...)"
  (cl--parsing-keywords (:test :test-not :key :if :if-not) ()
    (let ((cl-hold (list cl-tree))
          (cl--alist cl-alist))
      (cl--nsublis-rec cl-hold)
      (car cl-hold))))