Function: rng-substq

rng-substq is a byte-compiled function defined in rng-util.el.gz.

Signature

(rng-substq NEW OLD LIST)

Documentation

Replace first member of LIST (if any) that is eq to OLD by NEW.

LIST is not modified.

Source Code

;; Defined in /usr/src/emacs/lisp/nxml/rng-util.el.gz
(defun rng-substq (new old list)
  "Replace first member of LIST (if any) that is `eq' to OLD by NEW.
LIST is not modified."
  (cl-substitute new old list :count 1 :test #'eq))