Hi Alan,
Thank you for looking into this!
Until this is officially fixed I've come up with the following workaround, going off of the details you provided:
diff --git a/replace.el b/replace_fixed.el
index 08feb8e..8280fdd 100644
--- a/replace.el
+++ b/replace_fixed.el
@@ -2227,7 +2227,7 @@ It is called with three arguments, as if it were
(isearch-forward (not backward))
(isearch-other-end match-beg)
(isearch-error nil))
- (isearch-lazy-highlight-new-loop range-beg range-end))))
+ (save-match-data (isearch-lazy-highlight-new-loop range-beg range-end)))))
(defun replace-dehighlight ()
(when replace-overlay
Then I added the following to my "~/.emacs", restarted my emacs server, and the issue was gone!:
(load-library "~/.emacs.d/lisp/replace_fixed.el")
This probably isn't the proper fix, but just thought I'd share in case anyone else is experiencing this and wanted a temporary workaround.