]> git.eshelyaron.com Git - emacs.git/commit
query-replace: Undo replacements performed with 'comma
authorTino Calancha <tino.calancha@gmail.com>
Tue, 8 Aug 2017 01:25:27 +0000 (10:25 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Tue, 8 Aug 2017 01:25:27 +0000 (10:25 +0900)
commit919ac3ae1635bf2b99eb1f3efc7476826359e92a
tree0b2b85d5bce21bad1d83ff18dc33b5143a097fb0
parentbec5b602597b8b6f596067167f3b3fe0e6eff285
query-replace: Undo replacements performed with 'comma

During a `query-replace', the char ',' replaces the character
at point and doesn't move point;  right after, the char 'u'
must undo such replacement (Bug#27268).
* lisp/replace.el (replace--push-stack):
New macro extracted from `perform-replace'.
(perform-replace): Use it.
* test/lisp/replace-tests.el (query-replace--undo): Add test.
lisp/replace.el
test/lisp/replace-tests.el