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


2.6 Page Commands

Another unit of text recognized by Hemlock is the page. A page is a piece of text delimited by formfeeds (^L’s.) The first non-blank line after the page marker is the page title. The page commands are quite useful when logically distinct parts of a file are put on separate pages. See also Count Lines Page. These commands only recognize ^L’s at the beginning of a lines, so those quoted in string literals do not get in the way.

Command: Previous Page (bound to C-x ])
Command: Next Page (bound to C-x [)

Previous Page moves the point to the previous page delimiter, while Next Page moves to the next one. Any page delimiters next to the point are skipped. The prefix argument is a repeat count.

Command: Mark Page (bound to C-x C-p)

This command puts the point at the beginning of the current page and the mark at the end. If given a prefix argument, marks the page that many pages from the current one.

Command: Goto Page

This command does various things, depending on the prefix argument:

no argument

goes to the next page.

positive argument

goes to an absolute page number, moving that many pages from the beginning of the file.

zero argument

prompts for string and goes to the page with that string in its title. Repeated invocations in this manner continue searching from the point of the last find, and a first search with a particular pattern pushes a buffer mark.

negative argument

moves backward by that many pages, if possible.

Command: View Page Directory
Command: Insert Page Directory

View Page Directory uses a pop-up window to display the number and title of each page in the current buffer. Insert Page Directory is the same except that it inserts the text at the beginning of the buffer. With a prefix argument, Insert Page Directory inserts at the point.


Next: Counting Commands, Previous: Searching and Replacing, Up: Basic Commands   [Contents][Index]