Next: , Previous: , Up: Basic Commands   [Contents][Index]


2.7 Counting Commands

Command: Count Words

This command counts the number of words from the current point to the end of the buffer, displaying a message in the echo area. When the current region is active, this uses it instead of the region from the point to the end of the buffer. Word delimiters are determined by the current major mode.

Command: Count Lines

This command counts the number of lines from the current point to the end of the buffer, displaying a message in the echo area. When the current region is active, this uses it instead of the region from the point to the end of the buffer.

Command: Count Lines Page (bound to C-x l)

This command displays the number of lines in the current page and the number of lines before and after the point within that page. If given a prefix argument, the entire buffer is counted instead of just the current page.

Command: Count Occurrences

This command prompts for a search string and displays the number of occurrences of that string in the text from the point to the end of the buffer. When the current region is active, this uses it instead of the region from the point to the end of the buffer.


Next: Registers, Previous: Page Commands, Up: Basic Commands   [Contents][Index]