See section Local Variables . See section Variables Controlling Display , for additional variables that affect how text is displayed. Here are commands to get information about the size and position of parts of the buffer, and to count lines. There are two commands for printing the current line number. See section The Mode Line .
Line numbers count from one at the beginning of the buffer.
See section Pages . See section Pages , for the command C-x l which counts the lines in the current page. The front of the buffer counts as position 1, one character later as 2, and so on. The next, larger number is the total number of characters in the buffer. Afterward in parentheses comes the position expressed as a percentage of the total size.