From a0bdcedd9aa6eb9e05dde2eae01389ae67f911c3 Mon Sep 17 00:00:00 2001 From: Tino Calancha Date: Wed, 24 Feb 2016 01:38:50 +0900 Subject: [PATCH 2/2] ; Add NEWS and documentation for last commit --- ChangeLog.2 | 7 +++++++ doc/lispref/searching.texi | 8 ++++++++ etc/NEWS | 5 +++++ 3 files changed, 20 insertions(+) diff --git a/ChangeLog.2 b/ChangeLog.2 index 6edc654..0d76762 100644 --- a/ChangeLog.2 +++ b/ChangeLog.2 @@ -1,3 +1,10 @@ +2016-02-23 Tino Calancha + + * lisp/replace.el (perform-replace): `undo', undo last replacement + and move back to that place; `undo-all', undo all replacements + and move back to the place where the first replacement was performed. + (Bug#21684) + 2016-02-15 Glenn Morris * lisp/dired-aux.el: Require cl-lib. (Bug#22613) diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 1243d72..644716a 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi @@ -1805,6 +1805,14 @@ Search and Replace @item backup Move back to the previous place that a question was asked about. +@item undo +Undo last replacement and move back to the place where that +replacement was performed. + +@item undo-all +Undo all replacements and move back to the place where the first +replacement was performed. + @item edit Enter a recursive edit to deal with this question---instead of any other action that would normally be taken. diff --git a/etc/NEWS b/etc/NEWS index 255afde..8c14e6d 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -435,6 +435,11 @@ is intended for adding to 'kill-emacs-query-functions'. in favor of the global `M-s h' bindings introduced in Emacs-23.1. They'll disappear soon. ++++ +** New bindings for 'query-replace-map'. +`undo', undo the last replacement; bind to `u'. +`undo-all', undo all replacements; Bind to `U'. + * Changes in Specialized Modes and Packages in Emacs 25.1 -- 2.7.0