Avoid flicker in lazy-highlight by doing all updates without redisplay.
commitf2191691d4e814d38369053cdec428ee2142ab18
authorJuri Linkov <juri@linkov.net>
Tue, 21 Feb 2017 23:22:18 +0000 (22 01:22 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 21 Feb 2017 23:22:18 +0000 (22 01:22 +0200)
tree1038df189dd5ff5c4687589f9388bdfe4a2195e7
parent217eaf6932f68049e8f7f207b153c09ca85c7032
Avoid flicker in lazy-highlight by doing all updates without redisplay.

* lisp/isearch.el (lazy-highlight-max-at-a-time):
Change default value from 20 to nil to not trigger redisplay
between updating iterations.
(lazy-highlight-cleanup): New arg â€˜procrastinate’ to not remove
overlays when non-nil.
(isearch-lazy-highlight-new-loop): Call lazy-highlight-cleanup
with non-nil second arg when the search string is not empty.
Run timer with isearch-lazy-highlight-start instead of
isearch-lazy-highlight-update.
(isearch-lazy-highlight-start): New function. (Bug#25751)
lisp/isearch.el