(perform-replace): Before recursive edit,
get the match data as markers, and set real-match-data.
This commit is contained in:
parent
d155ff1892
commit
a9c4c78a68
1 changed files with 5 additions and 3 deletions
|
@ -846,9 +846,11 @@ which will run faster and probably do exactly what you want."
|
|||
((eq def 'recenter)
|
||||
(recenter nil))
|
||||
((eq def 'edit)
|
||||
(set-match-data
|
||||
(prog1 (match-data)
|
||||
(save-excursion (recursive-edit))))
|
||||
(goto-char (match-beginning 0))
|
||||
(funcall search-function search-string limit t)
|
||||
(setq real-match-data (match-data))
|
||||
(save-excursion (recursive-edit))
|
||||
(set-match-data real-match-data)
|
||||
;; Before we make the replacement,
|
||||
;; decide whether the search string
|
||||
;; can match again just after this match.
|
||||
|
|
Loading…
Add table
Reference in a new issue