diff options
| author | Tino Calancha | 2019-09-17 18:07:50 +0200 |
|---|---|---|
| committer | Tino Calancha | 2019-09-17 18:12:45 +0200 |
| commit | cbc10ec71e9f189e8d6fd5c6927aec4872e0fd96 (patch) | |
| tree | d69af7bdfb6993558e34ba2f421a3789a01a686a /lisp/replace.el | |
| parent | 746b20c23733c36c26e8962d685b01385e58e94d (diff) | |
| download | emacs-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.el | 2 |
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) |