all messages for Emacs-related lists mirrored at yhetil.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

* Re: Warning in replace.el
  2019-09-17 12:01 Warning in replace.el Lars Ingebrigtsen
@ 2019-09-17 14:38 ` Tino Calancha
  0 siblings, 0 replies; 2+ messages in thread
From: Tino Calancha @ 2019-09-17 14:38 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Emacs developers, Tino Calancha



On Tue, 17 Sep 2019, Lars Ingebrigtsen wrote:

> 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.


last-replacement-replaced  ---> next-replacement-replaced

I'll fix it in the evening.
Thank you



^ 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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.