Function: multi-file-replace-regexp-as-diff
multi-file-replace-regexp-as-diff is an autoloaded, interactive and
byte-compiled function defined in misearch.el.gz.
Signature
(multi-file-replace-regexp-as-diff FILES REGEXP TO-STRING &optional DELIMITED)
Documentation
Show as diffs replacements of REGEXP with TO-STRING in FILES.
DELIMITED has the same meaning as in replace-regexp.
The replacements are displayed in the buffer *replace-diff* that
you can later apply as a patch after reviewing the changes.
Probably introduced at or before Emacs version 30.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/misearch.el.gz
;;;###autoload
(defun multi-file-replace-regexp-as-diff (files regexp to-string &optional delimited)
"Show as diffs replacements of REGEXP with TO-STRING in FILES.
DELIMITED has the same meaning as in `replace-regexp'.
The replacements are displayed in the buffer *replace-diff* that
you can later apply as a patch after reviewing the changes."
(interactive
(let ((files (multi-isearch-read-files))
(common
(query-replace-read-args
(concat "Replace"
(if current-prefix-arg " word" "")
" regexp as diff in files")
t t)))
(list files (nth 0 common) (nth 1 common) (nth 2 common))))
(multi-file-replace-as-diff files regexp to-string t delimited))