Function: doc-view-search-next-match
doc-view-search-next-match is an interactive and byte-compiled
function defined in doc-view.el.gz.
Signature
(doc-view-search-next-match ARG)
Documentation
Go to the ARGth next matching page.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defun doc-view-search-next-match (arg)
"Go to the ARGth next matching page."
(interactive "p")
(let* ((next-pages (cl-remove-if
(lambda (i) (<= (car i) (doc-view-current-page)))
doc-view--current-search-matches))
(page (car (nth (1- arg) next-pages))))
(if page
(doc-view-goto-page page)
(when (and
doc-view--current-search-matches
(y-or-n-p "No more matches after current page. Wrap to first match? "))
(doc-view-goto-page (caar doc-view--current-search-matches))))))