summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2019-09-17 18:07:50 +0200
committerTino Calancha <tino.calancha@gmail.com>2019-09-17 18:12:45 +0200
commitcbc10ec71e9f189e8d6fd5c6927aec4872e0fd96 (patch)
treed69af7bdfb6993558e34ba2f421a3789a01a686a /lisp
parent746b20c23733c36c26e8962d685b01385e58e94d (diff)
downloademacs-cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96.tar.gz
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')
-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."
search-string (nth (if replaced 4 3) elt)
last-replacement (nth (if replaced 3 4) elt)
search-string-replaced search-string
- last-replacement-replaced last-replacement
+ next-replacement-replaced last-replacement
last-was-act-and-show nil)
(when (and (= stack-idx stack-len)