From 59b5d020e4b85357da050a7242e8690f1b18740b Mon Sep 17 00:00:00 2001 From: Juri Linkov Date: Sat, 10 Nov 2007 21:52:06 +0000 Subject: [PATCH] Add query-replace-show-replacement and match-substitute-replacement. --- etc/NEWS | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index b54aa3a9417..581547fe116 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -123,6 +123,11 @@ following arguments. * 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 @@ -364,6 +369,10 @@ because they clash with commands provided by dirtrack.el. Use * 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', -- 2.39.5