]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix an assignment to free variable warning
authorTino Calancha <tino.calancha@gmail.com>
Tue, 17 Sep 2019 16:07:50 +0000 (18:07 +0200)
committerTino Calancha <tino.calancha@gmail.com>
Tue, 17 Sep 2019 16:12:45 +0000 (18:12 +0200)
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.

lisp/replace.el

index a82780fc47e597a15b54cd9ec30df6b7e1ac0211..5c0616e25f028b5102b901e148f7803f77ec2ff2 100644 (file)
@@ -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)