Function: count-lines-page

count-lines-page is an interactive and byte-compiled function defined in page.el.gz.

Signature

(count-lines-page)

Documentation

Report number of lines on current page, and how many are before or after point.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/page.el.gz
(defun count-lines-page ()
  "Report number of lines on current page, and how many are before or after point."
  (interactive)
  (pcase-let ((`(,total ,before ,after) (page--count-lines-page)))
    (message (ngettext "Page has %d line (%d + %d)"
                       "Page has %d lines (%d + %d)" total)
             total before after)))