mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
* lisp/replace.el (replace-preview--input): New function. (replace-preview-update): Add optional START and END, and preview only the matches between them. (replace-preview-setup): Accept a nil FROM, read from the minibuffer along with the replacement, and add optional BACKWARD. Limit the preview to the part of the buffer that the replacement will cover. (query-replace-read-to): Add optional BACKWARD and pass it on. (query-replace-read-args): Preview the replacement while reading FROM as well, and preview nothing when the caller asks for no highlighting. * lisp/isearch.el (isearch-query-replace): Pass BACKWARD to `query-replace-read-to'. * test/lisp/replace-tests.el (replace-tests--preview): Add START and END. (replace-tests-preview-bounds, replace-tests-preview-input): New tests. * doc/emacs/search.texi (Replace): Document the above. |
||
|---|---|---|
| .. | ||
| emacs | ||
| lispintro | ||
| lispref | ||
| man | ||
| misc | ||
| translations | ||