Commit 596235d6 authored by Karl Heuer's avatar Karl Heuer
Browse files

(perform-replace): Position point properly

before and after the recursive edit of C-r.
parent ad014140
......@@ -850,10 +850,13 @@ which will run faster and probably do exactly what you want."
((eq def 'recenter)
(recenter nil))
((eq def 'edit)
(goto-char (match-beginning 0))
(funcall search-function search-string limit t)
(setq real-match-data (match-data))
(save-excursion (recursive-edit))
(let ((opos (point-marker)))
(goto-char (match-beginning 0))
(save-excursion
(funcall search-function search-string limit t)
(setq real-match-data (match-data)))
(save-excursion (recursive-edit))
(goto-char opos))
(set-match-data real-match-data)
;; Before we make the replacement,
;; decide whether the search string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment