gnu.emacs/doc
Rahul Martim Juliato 3b721dd39a Let 'query-replace-show-preview' be a function (bug#81583)
Suggested by Juri Linkov <juri@linkov.net>.

* lisp/replace.el (query-replace-show-preview): Drop the values
t and 'both' in favor of the two functions that implement them.
(query-replace-preview-match): Doc fix.
(replace-preview-propertize): Rename from
'replace-preview--propertize' and make it public, so that the
preview functions can be copied and adapted.
(replace-preview-only-replacement, replace-preview-both): New
functions.
(replace-preview--format): Call the value of
'query-replace-show-preview'.
(replace-preview-setup): Preview only if the value is a
function.
* etc/NEWS: Update the entry.
* doc/emacs/search.texi (Replace): Document the new values.
* test/lisp/replace-tests.el (replace-tests--preview)
(replace-tests-preview-cleanup, replace-tests-preview-disabled)
(replace-tests-preview-invisible-match): Use the new functions.
(replace-tests-preview-both, replace-tests-preview-function):
New tests.
2026-09-02 22:01:58 +03:00
..
emacs Let 'query-replace-show-preview' be a function (bug#81583) 2026-09-02 22:01:58 +03:00
lispintro current-time-list now defaults to nil 2026-07-23 23:05:13 -07:00
lispref ; clarify Greenwich meridian vs time 2026-08-31 15:42:55 -07:00
man ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
misc Update to Transient v0.13.8-13-gfb7ae78 2026-09-02 20:25:04 +02:00
translations Always build the Emacs, Elisp and Intro manuals (bug#81332) 2026-08-29 12:43:41 +03:00