]> git.eshelyaron.com Git - emacs.git/commit
Don't lose point during fileloop replace (Bug#38867)
authorNoam Postavsky <npostavs@gmail.com>
Tue, 24 Mar 2020 09:39:03 +0000 (05:39 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Tue, 31 Mar 2020 22:17:53 +0000 (18:17 -0400)
commita477a7b86ba7c59a90b18283cc86769c27de6c7c
tree01e595a0c51083bbdf66ff22b66fdab529d79692
parent05cab7ad06efabae18ee94e3b609ea10ae2f60be
Don't lose point during fileloop replace (Bug#38867)

Suggested by Eric Michael Timmons <etimmons@mit.edu>.
* lisp/fileloop.el (fileloop-initialize-replace): Save the
match-beginning position in a variable instead of the buffer's point.
The point may be changed by the time perform-replace is called, e.g.,
due to switch-to-buffer-preserve-window-point.
lisp/fileloop.el