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 (alist 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]...)"
  (declare (important-return-value t))
  (cl--parsing-keywords (:test :test-not :key :if :if-not) ()
    (let ((hold (list tree))
          (cl--alist alist))
      (cl--nsublis-rec hold)
      (car hold))))