diff options
author | Augusto Stoffel <arstoffel@gmail.com> | 2021-01-27 16:09:38 +0100 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2021-01-30 20:48:28 +0200 |
commit | ece7425c22633196ae164cb6aa0e6d77fabe9f81 (patch) | |
tree | fff63f0d5b3c0a8d17041c88b8ee24de455c8ad9 /doc | |
parent | 3555657585bb2c1809fa6abff7f565a8c7f226eb (diff) | |
download | emacs-ece7425c22633196ae164cb6aa0e6d77fabe9f81.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/emacs/search.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 637867b8115..f3c42bcea7f 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi @@ -2027,6 +2027,13 @@ highlighting: @item lazy-highlight-initial-delay @vindex lazy-highlight-initial-delay Time in seconds to wait before highlighting visible matches. +Applies only if the search string is less than +@code{lazy-highlight-no-delay-length} characters long. + +@item lazy-highlight-no-delay-length +@vindex lazy-highlight-no-delay-length +For search strings at least as long as the value of this variable, +lazy highlighting of matches starts immediately. @item lazy-highlight-interval @vindex lazy-highlight-interval |