aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/replace.el
diff options
context:
space:
mode:
authorTino Calancha2019-09-17 18:07:50 +0200
committerTino Calancha2019-09-17 18:12:45 +0200
commitcbc10ec71e9f189e8d6fd5c6927aec4872e0fd96 (patch)
treed69af7bdfb6993558e34ba2f421a3789a01a686a /lisp/replace.el
parent746b20c23733c36c26e8962d685b01385e58e94d (diff)
downloademacs-cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96.tar.gz
emacs-cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96.zip
Fix an assignment to free variable warning
It fixes a bug introduced by commit 'query-replace-regexp undo: Update next-replacement after undo' (30c4f35a6fc8a6507930923766c3126ac1c2063f) See https://lists.gnu.org/archive/html/emacs-devel/2019-09/msg00364.html * lisp/replace.el(perform-replace): Rename variable to next-replacement-replaced.
Diffstat (limited to 'lisp/replace.el')
-rw-r--r--lisp/replace.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index a82780fc47e..5c0616e25f0 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2711,7 +2711,7 @@ characters."
2711 search-string (nth (if replaced 4 3) elt) 2711 search-string (nth (if replaced 4 3) elt)
2712 last-replacement (nth (if replaced 3 4) elt) 2712 last-replacement (nth (if replaced 3 4) elt)
2713 search-string-replaced search-string 2713 search-string-replaced search-string
2714 last-replacement-replaced last-replacement 2714 next-replacement-replaced last-replacement
2715 last-was-act-and-show nil) 2715 last-was-act-and-show nil)
2716 2716
2717 (when (and (= stack-idx stack-len) 2717 (when (and (= stack-idx stack-len)