Function: isearch-lazy-count-format
isearch-lazy-count-format is a byte-compiled function defined in
isearch.el.gz.
Signature
(isearch-lazy-count-format &optional SUFFIX-P)
Documentation
Format the current match number and the total number of matches.
When SUFFIX-P is non-nil, the returned string is intended for isearch-message-suffix prompt. Otherwise, for isearch-message-prefix.
Source Code
;; Defined in /usr/src/emacs/lisp/isearch.el.gz
(defun isearch-lazy-count-format (&optional suffix-p)
"Format the current match number and the total number of matches.
When SUFFIX-P is non-nil, the returned string is intended for
isearch-message-suffix prompt. Otherwise, for isearch-message-prefix."
(let ((format-string (if suffix-p
lazy-count-suffix-format
lazy-count-prefix-format)))
(if (and format-string
isearch-lazy-count
isearch-lazy-count-current
(not isearch-error)
(not isearch-suspended))
(format format-string
(if isearch-lazy-highlight-forward
isearch-lazy-count-current
(if (eq isearch-lazy-count-current 0)
0
(- isearch-lazy-count-total
isearch-lazy-count-current
-1)))
(if (and isearch-lazy-count-invisible
lazy-count-invisible-format)
(concat (format "%s" (or isearch-lazy-count-total "?"))
(format lazy-count-invisible-format
isearch-lazy-count-invisible))
(or isearch-lazy-count-total "?")))
"")))