Function: replace-match-data
replace-match-data is a byte-compiled function defined in
replace.el.gz.
Signature
(replace-match-data INTEGERS REUSE &optional NEW)
Documentation
Like match-data, but markers in REUSE get invalidated.
If NEW is non-nil, it is set and returned instead of fresh data, but coerced to the correct value of INTEGERS.
Source Code
;; Defined in /usr/src/emacs/lisp/replace.el.gz
(defun replace-match-data (integers reuse &optional new)
"Like `match-data', but markers in REUSE get invalidated.
If NEW is non-nil, it is set and returned instead of fresh data,
but coerced to the correct value of INTEGERS."
(or (and new
(progn
(set-match-data new)
(and (eq new reuse)
(eq (null integers) (markerp (car reuse)))
new)))
(match-data integers reuse t)))