Function: cps--replace-variable-references

cps--replace-variable-references is a byte-compiled function defined in generator.el.gz.

Signature

(cps--replace-variable-references VAR NEW-VAR FORM)

Documentation

Replace all non-shadowed references to VAR with NEW-VAR in FORM.

This routine does not modify FORM. Instead, it returns a modified copy.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/generator.el.gz
(defun cps--replace-variable-references (var new-var form)
  "Replace all non-shadowed references to VAR with NEW-VAR in FORM.
This routine does not modify FORM.  Instead, it returns a
modified copy."
  (macroexpand-all
   `(cl-symbol-macrolet ((,var ,new-var)) ,form)
   macroexpand-all-environment))