mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-12 16:56:36 -04:00
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. |
||
|---|---|---|
| .. | ||
| emacs | ||
| lispintro | ||
| lispref | ||
| man | ||
| misc | ||
| translations | ||