]> git.eshelyaron.com Git - emacs.git/commit
Rewrite the minibuffer lazy highlight feature
authorAugusto Stoffel <arstoffel@gmail.com>
Sat, 9 Apr 2022 10:38:14 +0000 (12:38 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 10 Apr 2022 19:36:47 +0000 (22:36 +0300)
commit4c0c9d23abc28c7fa7eacf2f4d7a5aff02d84ab0
tree5d33ebc7a7d409c31e2159865327b780e96953a8
parent7c6cdc1effe247a727a53eb3855894c0f00ef2ca
Rewrite the minibuffer lazy highlight feature

The new API was discussed in bug#53126.  It's more robust and easier
to use in complex cases like that of 'query-replace'.

* etc/NEWS: Amend the feature announcement
* lisp/isearch.el (isearch-edit-string): Use new API.
(minibuffer-lazy-highlight-transform,
minibuffer-lazy-highlight--overlay, minibuffer-lazy-highlight--count,
minibuffer-lazy-highlight--after-change,
minibuffer-lazy-highlight--exit) Remove helper functions, which are
now kept together with the lazy highlight configuration variables
within a closure.
(minibuffer-lazy-highlight-setup): This function now takes the lazy
highlighting configuration variables as argument, and returns a
closure that is intended to run as part of the minibuffer setup.
etc/NEWS
lisp/isearch.el