diff options
| author | Juri Linkov | 2018-10-27 23:27:54 +0300 |
|---|---|---|
| committer | Juri Linkov | 2018-10-27 23:27:54 +0300 |
| commit | 3dd16a89bf410d77e9ddc41cbfbbd4b343928d6d (patch) | |
| tree | b8ab1e8cce028a8e6726e669ec8766ed0a65a951 /etc | |
| parent | 2df74ce79b910c977167e84d4cb37ede1053663f (diff) | |
| download | emacs-3dd16a89bf410d77e9ddc41cbfbbd4b343928d6d.tar.gz emacs-3dd16a89bf410d77e9ddc41cbfbbd4b343928d6d.zip | |
* lisp/isearch.el (lazy-highlight-buffer): New defcustom. (Bug#29360)
(lazy-highlight-buffer-max-at-a-time): New defcustom.
(isearch-lazy-highlight-buffer): New defvar.
(isearch-lazy-highlight-new-loop): Don't check changes in window
boundaries when lazy-highlight-buffer is non-nil.
Move code that extends start/end to match whole string at point
here from isearch-lazy-highlight-search.
(isearch-lazy-highlight-search): Add args string and bound
like in other search functions. Move calculation of bound
to isearch-lazy-highlight-update.
(isearch-lazy-highlight-match): New function with code extracted from
isearch-lazy-highlight-update to be called also from
isearch-lazy-highlight-buffer-update.
(isearch-lazy-highlight-update): Reuse the values returned from
window-group-start and window-group-end. At the end schedule the
timer to call isearch-lazy-highlight-buffer-update when
isearch-lazy-highlight-buffer is non-nil.
(isearch-lazy-highlight-buffer-update): New function.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
| @@ -581,6 +581,14 @@ can now be searched via 'C-s'. | |||
| 581 | 581 | ||
| 582 | ** Search and Replace | 582 | ** Search and Replace |
| 583 | 583 | ||
| 584 | *** lazy-highlight-buffer highlights matches in the full buffer. | ||
| 585 | It is useful in combination with lazy-highlight-cleanup customized to nil | ||
| 586 | to leave matches highlighted in the whole buffer after exiting isearch. | ||
| 587 | Also when lazy-highlight-buffer prepares highlighting in the buffer, | ||
| 588 | navigation through the matches without flickering is more smooth. | ||
| 589 | lazy-highlight-buffer-max-at-a-time controls the number of matches to | ||
| 590 | highlight in one iteration while processing the full buffer. | ||
| 591 | |||
| 584 | +++ | 592 | +++ |
| 585 | *** New isearch bindings. | 593 | *** New isearch bindings. |
| 586 | 594 | ||