diff options
| author | Juri Linkov | 2018-11-15 00:23:47 +0200 |
|---|---|---|
| committer | Juri Linkov | 2018-11-15 00:23:47 +0200 |
| commit | 35a88c809e9eb5a32dd8d7f0dae960021f4cd707 (patch) | |
| tree | a6cc5a092cf2c752f7df48c54e27edc29746f322 /etc | |
| parent | 5fe81ebbb52a82ed13635df4861039ac7ed42022 (diff) | |
| download | emacs-35a88c809e9eb5a32dd8d7f0dae960021f4cd707.tar.gz emacs-35a88c809e9eb5a32dd8d7f0dae960021f4cd707.zip | |
Isearch hit count. (Bug#29321)
* lisp/isearch.el (isearch-lazy-count): New defcustom.
(lazy-count): New defgroup.
(lazy-count-prefix-format, lazy-count-suffix-format): New defcustom.
(isearch-lazy-count-format): New function.
(isearch-message-prefix, isearch-message-suffix): Use it.
(isearch-lazy-highlight-window-start-changed)
(isearch-lazy-highlight-window-end-changed)
(isearch-lazy-count-current, isearch-lazy-count-total)
(isearch-lazy-count-hash): New variables.
(isearch-lazy-highlight-new-loop): Reset isearch-lazy-count-total
and update isearch-lazy-count-current for isearch-message.
(isearch-lazy-highlight-update): Run full-buffer loop for
isearch-lazy-count.
(isearch-lazy-highlight-buffer-update): Count isearch-lazy-count-total.
Set isearch-lazy-count-current at the end.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -621,6 +621,12 @@ can now be searched via 'C-s'. | |||
| 621 | 621 | ||
| 622 | ** Search and Replace | 622 | ** Search and Replace |
| 623 | 623 | ||
| 624 | *** isearch-lazy-count shows the current match number and total number | ||
| 625 | of matches in the Isearch prompt. Customizable variables | ||
| 626 | lazy-count-prefix-format and lazy-count-suffix-format define the | ||
| 627 | format of the current and the total number of matches in the prompt's | ||
| 628 | prefix and suffix respectively. | ||
| 629 | |||
| 624 | *** lazy-highlight-buffer highlights matches in the full buffer. | 630 | *** lazy-highlight-buffer highlights matches in the full buffer. |
| 625 | It is useful in combination with lazy-highlight-cleanup customized to nil | 631 | It is useful in combination with lazy-highlight-cleanup customized to nil |
| 626 | to leave matches highlighted in the whole buffer after exiting isearch. | 632 | to leave matches highlighted in the whole buffer after exiting isearch. |