aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2018-11-15 00:23:47 +0200
committerJuri Linkov2018-11-15 00:23:47 +0200
commit35a88c809e9eb5a32dd8d7f0dae960021f4cd707 (patch)
treea6cc5a092cf2c752f7df48c54e27edc29746f322 /etc
parent5fe81ebbb52a82ed13635df4861039ac7ed42022 (diff)
downloademacs-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/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index dff7c5d0d5f..76531f288ff 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
625of matches in the Isearch prompt. Customizable variables
626lazy-count-prefix-format and lazy-count-suffix-format define the
627format of the current and the total number of matches in the prompt's
628prefix and suffix respectively.
629
624*** lazy-highlight-buffer highlights matches in the full buffer. 630*** lazy-highlight-buffer highlights matches in the full buffer.
625It is useful in combination with lazy-highlight-cleanup customized to nil 631It is useful in combination with lazy-highlight-cleanup customized to nil
626to leave matches highlighted in the whole buffer after exiting isearch. 632to leave matches highlighted in the whole buffer after exiting isearch.