diff options
| author | Juri Linkov | 2007-11-10 21:52:06 +0000 |
|---|---|---|
| committer | Juri Linkov | 2007-11-10 21:52:06 +0000 |
| commit | 59b5d020e4b85357da050a7242e8690f1b18740b (patch) | |
| tree | 8d9749755099e27196addac4a6bd4d62d40fbaaf | |
| parent | 21d50ba11f58b300fa24a1f9f9faaf011b495760 (diff) | |
| download | emacs-59b5d020e4b85357da050a7242e8690f1b18740b.tar.gz emacs-59b5d020e4b85357da050a7242e8690f1b18740b.zip | |
Add query-replace-show-replacement and match-substitute-replacement.
| -rw-r--r-- | etc/NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -124,6 +124,11 @@ following arguments. | |||
| 124 | * Editing Changes in Emacs 23.1 | 124 | * Editing Changes in Emacs 23.1 |
| 125 | 125 | ||
| 126 | +++ | 126 | +++ |
| 127 | ** C-M-% now shows replacement as it would look in the buffer, with | ||
| 128 | `\N' and `\&' substituted according to the match. Old behavior can be | ||
| 129 | restored by customizing `query-replace-show-replacement'. | ||
| 130 | |||
| 131 | +++ | ||
| 127 | ** M-q now fills the region if the region is active and | 132 | ** M-q now fills the region if the region is active and |
| 128 | `transient-mark-mode' is turned on. Otherwise, it fills the current | 133 | `transient-mark-mode' is turned on. Otherwise, it fills the current |
| 129 | paragraph. | 134 | paragraph. |
| @@ -365,6 +370,10 @@ because they clash with commands provided by dirtrack.el. Use | |||
| 365 | * Lisp Changes in Emacs 23.1 | 370 | * Lisp Changes in Emacs 23.1 |
| 366 | 371 | ||
| 367 | +++ | 372 | +++ |
| 373 | ** New function `match-substitute-replacement' returns the result of | ||
| 374 | `replace-match' without actually using it in the buffer. | ||
| 375 | |||
| 376 | +++ | ||
| 368 | ** A list of default values can be specified for the DEFAULT argument of | 377 | ** A list of default values can be specified for the DEFAULT argument of |
| 369 | functions `read-from-minibuffer', `read-string', `read-command', | 378 | functions `read-from-minibuffer', `read-string', `read-command', |
| 370 | `read-variable', `read-buffer', `completing-read'. Elements of this list | 379 | `read-variable', `read-buffer', `completing-read'. Elements of this list |