changeset 86024:1027550b68ba

Add query-replace-show-replacement and match-substitute-replacement.
author Juri Linkov <juri@jurta.org>
date Sat, 10 Nov 2007 21:52:06 +0000
parents d72a9deca64e
children 19784f7db0ef
files etc/NEWS
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/etc/NEWS	Sat Nov 10 21:51:26 2007 +0000
+++ b/etc/NEWS	Sat Nov 10 21:52:06 2007 +0000
@@ -124,6 +124,11 @@
 * Editing Changes in Emacs 23.1
 
 +++
+** C-M-% now shows replacement as it would look in the buffer, with
+`\N' and `\&' substituted according to the match.  Old behavior can be
+restored by customizing `query-replace-show-replacement'.
+
++++
 ** M-q now fills the region if the region is active and
 `transient-mark-mode' is turned on.  Otherwise, it fills the current
 paragraph.
@@ -365,6 +370,10 @@
 * Lisp Changes in Emacs 23.1
 
 +++
+** New function `match-substitute-replacement' returns the result of
+`replace-match' without actually using it in the buffer.
+
++++
 ** A list of default values can be specified for the DEFAULT argument of
 functions `read-from-minibuffer', `read-string', `read-command',
 `read-variable', `read-buffer', `completing-read'.  Elements of this list