# HG changeset patch # User Kim F. Storm # Date 1118270233 0 # Node ID 571afd8b238af939bdf36c69b2db94187d206b3a # Parent 6ee6dddcf5565ce484d610231cedfad0b167ccf5 (replace-match-data): Pass RESEAT arg `t' to match-data to unchain markers in match-data. diff -r 6ee6dddcf556 -r 571afd8b238a lisp/replace.el --- a/lisp/replace.el Wed Jun 08 22:36:28 2005 +0000 +++ b/lisp/replace.el Wed Jun 08 22:37:13 2005 +0000 @@ -217,7 +217,7 @@ To customize possible responses, change the \"bindings\" in `query-replace-map'." (interactive (let ((common - (query-replace-read-args + (query-replace-read-args (if (and transient-mark-mode mark-active) "Query replace in region" "Query replace") @@ -281,7 +281,7 @@ Use \\[repeat-complex-command] after this command for details." (interactive (let ((common - (query-replace-read-args + (query-replace-read-args (if (and transient-mark-mode mark-active) "Query replace regexp in region" "Query replace regexp") @@ -431,7 +431,7 @@ and TO-STRING is also null.)" (interactive (let ((common - (query-replace-read-args + (query-replace-read-args (if (and transient-mark-mode mark-active) "Replace string in region" "Replace string") @@ -489,10 +489,10 @@ which will run faster and will not set the mark or print anything." (interactive (let ((common - (query-replace-read-args + (query-replace-read-args (if (and transient-mark-mode mark-active) - "Replace regexp in region" - "Replace regexp") + "Replace regexp in region" + "Replace regexp") t))) (list (nth 0 common) (nth 1 common) (nth 2 common) (if (and transient-mark-mode mark-active) @@ -1268,12 +1268,7 @@ (and (eq new reuse) (eq (null integers) (markerp (car reuse))) new))) - (match-data integers - (prog1 reuse - (while reuse - (if (markerp (car reuse)) - (set-marker (car reuse) nil)) - (setq reuse (cdr reuse))))))) + (match-data integers reuse t))) (defun replace-match-maybe-edit (newtext fixedcase literal noedit match-data) "Make a replacement with `replace-match', editing `\\?'.