Function: ediff-count-matches
ediff-count-matches is a byte-compiled function defined in
ediff-ptch.el.gz.
Signature
(ediff-count-matches REGEXP BUF)
Source Code
;; Defined in /usr/src/emacs/lisp/vc/ediff-ptch.el.gz
;; no longer used
;; return the number of matches of regexp in buf starting from the beginning
(defun ediff-count-matches (regexp buf)
(ediff-with-current-buffer buf
(let ((count 0) opoint)
(save-excursion
(goto-char (point-min))
(while (and (not (eobp))
(progn (setq opoint (point))
(re-search-forward regexp nil t)))
(if (= opoint (point))
(forward-char 1)
(setq count (1+ count)))))
count)))