The subject line essentially. C-h f dired-do-query-replace-regexp RET returns: dired-do-query-replace-regexp is an interactive native compiled Lisp function in ‘dired-aux.el’. (dired-do-query-replace-regexp FROM TO &optional DELIMITED) Do ‘query-replace-regexp’ of FROM with TO, on all marked files. Third arg DELIMITED (prefix arg) means replace only word-delimited matches. If you exit (C-g, RET or q), you can resume the query replace with the command M-x tags-loop-continue. It should be fileloop-continue instead. See attached patch.