# HG changeset patch # User Juri Linkov # Date 1194731526 0 # Node ID 1027550b68bae37e2246fa52e71ef4a6ab944636 # Parent d72a9deca64e39f9c0ffba4fdb8de992a89be476 Add query-replace-show-replacement and match-substitute-replacement. diff -r d72a9deca64e -r 1027550b68ba etc/NEWS --- 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