summaryrefslogtreecommitdiff
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:16:14 +0200
commitbba9757a1fd7b05f7b18b0666735711d231972fa (patch)
tree3b752cb7762d6e0659f64c49bb3c20baee31ec8b
parent30c4f35a6fc8a6507930923766c3126ac1c2063f (diff)
downloademacs-bba9757a1fd7b05f7b18b0666735711d231972fa.tar.gz
Backport: 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. (cherry picked from commit cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96)
-rw-r--r--lisp/replace.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/replace.el b/lisp/replace.el
index dd24d8ba923..6dba7d77a88 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -2597,7 +2597,7 @@ It must return a string."
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)