]> git.eshelyaron.com Git - emacs.git/commit
Backport: Fix corner case in query-replace-regexp undo
authorTino Calancha <tino.calancha@gmail.com>
Sun, 3 Jun 2018 14:28:24 +0000 (23:28 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Sun, 3 Jun 2018 14:28:24 +0000 (23:28 +0900)
commit031004e81b1507c4594ae253faaafcda31f253c8
tree7f3c92e2169d93ee3f74facf5a4a24f8db6e1307
parent50c0624b2aecb9668505eb2cea3f30aecbf6d1ec
Backport: Fix corner case in query-replace-regexp undo

This commit fixes Bug#31492.
* lisp/replace.el (replace-match-maybe-edit): Preserve match data.

* test/lisp/replace-tests.el (query-replace-undo-bug31492): Add test.

(cherry picked from commit bab73230d1be1fe394b7269c1365ef6fb1a5d9b3)
lisp/replace.el
test/lisp/replace-tests.el