diff --git a/lisp/replace.el b/lisp/replace.el index 23e6483809..5add576d6b 100644 --- a/lisp/replace.el +++ b/lisp/replace.el @@ -3233,7 +3233,10 @@ perform-replace (last-command 'recenter-top-bottom)) (recenter-top-bottom))) ((eq def 'edit) - (let ((opos (point-marker))) + (let ((opos (point-marker)) + (isearch-filter-predicate isearch-filter-predicate)) + (when region-filter + (remove-function isearch-filter-predicate region-filter)) (setq real-match-data (replace-match-data nil real-match-data real-match-data))