]> git.eshelyaron.com Git - emacs.git/commit
Add lazy highlight when reading 'query-replace' arguments
authorAugusto Stoffel <arstoffel@gmail.com>
Sat, 9 Apr 2022 10:47:28 +0000 (12:47 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 10 Apr 2022 19:37:04 +0000 (22:37 +0300)
commit48cb9c4aaadfe7bd50c13f658a6e8e9e97587867
treeaff6bbd8da659e33dbbbfb7608151af5d6476cb6
parent4c0c9d23abc28c7fa7eacf2f4d7a5aff02d84ab0
Add lazy highlight when reading 'query-replace' arguments

* lisp/replace.el (query-replace-read-args):  Use
'minibuffer-lazy-highlight-setup' to highlight the text to be replaced
in the original buffer (and a match count, if applicable).
(replace--region-filter): New function for code that
used to be inlined in perform-replace but is useful elsewhere.
(perform-replace): Use 'replace--region-filter'.
lisp/replace.el