gnu.emacs/doc
Rahul Martim Juliato a8736d5f88 Improve where the replacement is previewed (bug#81583)
* 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.
2026-09-09 20:54:04 +03:00
..
emacs Improve where the replacement is previewed (bug#81583) 2026-09-09 20:54:04 +03:00
lispintro current-time-list now defaults to nil 2026-07-23 23:05:13 -07:00
lispref ; * doc/lispref/text.texi (Undo): Fix last change. 2026-09-04 14:15:59 +03:00
man ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
misc Update from Gnulib by running admin/merge-gnulib 2026-09-06 16:02:06 -07:00
translations Always build the Emacs, Elisp and Intro manuals (bug#81332) 2026-08-29 12:43:41 +03:00