Tags: patch As discussed on emacs-devel, here is the patch that implements a standalone command that reads a list of files and replacement strings, then shows a diff to review before applying replacements. Also provided the Dired integration to show the replacement diff on marked files. Later the same function could be used to show replacement diffs from the xref buffer and maybe from other packages as well.