]> git.eshelyaron.com Git - emacs.git/commit
Reduce flicker in Isearch mode
authorAugusto Stoffel <arstoffel@gmail.com>
Wed, 27 Jan 2021 15:09:38 +0000 (16:09 +0100)
committerJuri Linkov <juri@linkov.net>
Sat, 30 Jan 2021 18:48:28 +0000 (20:48 +0200)
commitece7425c22633196ae164cb6aa0e6d77fabe9f81
treefff63f0d5b3c0a8d17041c88b8ee24de455c8ad9
parent3555657585bb2c1809fa6abff7f565a8c7f226eb
Reduce flicker in Isearch mode

Lazy highlighting now happens immediately when the search string is at
least as long as the value of the new custom variable
`lazy-highlight-no-delay-length`.  Also avoid updating the lazy
count in the echo area too often.
* isearch.el (lazy-highlight-no-delay-length): New defcustom.
* isearch.el (lazy-lazy-count-format): Avoid a momentarily incorrect
count when reversing search direction.
* isearch.el (isearch-lazy-highlight-new-loop): Avoid a call to
`isearch-message` that is quickly succeed by a second echo area
update, thus causing flicker.
* isearch.el (isearch-lazy-highlight-new-loop):
Start lazy highlight immediately if appropriate.
* etc/NEWS: Announce the change.
* doc/emacs/search.texi: Document `lazy-highlight-no-delay-length'.

Copyright-paperwork-exempt: yes
doc/emacs/search.texi
etc/NEWS
lisp/isearch.el