From: Juri Linkov Date: Sat, 10 Nov 2007 21:52:06 +0000 (+0000) Subject: Add query-replace-show-replacement and match-substitute-replacement. X-Git-Tag: emacs-pretest-23.0.90~9787 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=59b5d020e4b85357da050a7242e8690f1b18740b;p=emacs.git Add query-replace-show-replacement and match-substitute-replacement. --- 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',