unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Warning in replace.el
@ 2019-09-17 12:01 Lars Ingebrigtsen
  2019-09-17 14:38 ` Tino Calancha
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-17 12:01 UTC (permalink / raw)
  To: Tino Calancha; +Cc: Emacs developers

Compiling Emacs now, I get

In perform-replace:
replace.el:2714:35:Warning: assignment to free variable
    `last-replacement-replaced'

It's this code:

                                  search-string-replaced search-string
                                  last-replacement-replaced last-replacement
                                  last-was-act-and-show nil)

But setting last-replacement-replaced is the only place this variable is
mentioned.

Tino?  It's from this commit:

commit 30c4f35a6fc8a6507930923766c3126ac1c2063f
Author: Tino Calancha <tino.calancha@gmail.com>
Date:   Mon Sep 9 08:21:18 2019 +0200

    query-replace-regexp undo: Update next-replacement after undo
    
    * lisp/replace.el (perform-replace):
    Rename the local binding to not shadow next-replacement.
    Update next-replacement after undo (Bug#37287).
    
    * test/lisp/replace-tests.el (query-replace-undo-bug37287): Add test.
    (query-replace-undo-bug37073): Tweak this test.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-09-17 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-17 12:01 Warning in replace.el Lars Ingebrigtsen
2019-09-17 14:38 ` Tino Calancha

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).