]> git.eshelyaron.com Git - emacs.git/commit
Backport: Preserve case in query-replace undo
authorTino Calancha <tino.calancha@gmail.com>
Sun, 3 Jun 2018 14:28:14 +0000 (23:28 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Sun, 3 Jun 2018 14:28:14 +0000 (23:28 +0900)
commit50c0624b2aecb9668505eb2cea3f30aecbf6d1ec
tree2fd3af2490d590854f206b7b33f55f7d7f76ca00
parentdefd53a56c709b8b8c736f0ab3b594490216d300
Backport: Preserve case in query-replace undo

If the user query and replaces 'foo' with 'BAR', then
undo must comeback to 'foo', not to 'FOO' (Bug#31073).
* lisp/replace.el (perform-replace): Bind nocasify to non-nil
value during undo/undo-all actions.
* test/lisp/replace-tests.el (query-replace-undo-bug31073): Add test.

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