LispWorks Editor User Guide > 3 Command Reference > 3.17 Filling

NextPrevUpTopContentsIndex

3.17.1 Fill commands

Fill Paragraph

Editor Command

Arguments: None
Key sequence: Alt+Q

Fills the current paragraph. If the current point is located between two paragraphs, the next paragraph is filled.

A prefix argument causes the current fill operation to use that value, rather than the value of fill-column.

Fill Region

Editor Command

Arguments: None
Key sequence: Alt+G

Fills the region from the current point to the mark.

A prefix argument causes the current fill operation to use that value, rather than the value of fill-column.

fill-column

Editor Variable

Default value: 70

Determines the column at which text in the current buffer is forced on to a new line when filling text.

Set Fill Column

Editor Command

Arguments: None
Key sequence: Ctrl+X F

Sets the value of fill-column, for the current buffer, as the column of the current point.

A prefix argument causes fill-column to be set at the required value.

fill-prefix

Editor Variable

Default value: nil

Defines a string which is excluded when each line of the current buffer is re-formatted using the filling commands. For example, if the value is ";;", then these characters at the start of a line are skipped over when the text is re-formatted. This allows you to re-format (fill) Lisp comments. If the value is nil , no characters are excluded when text is filled.

If the vales is non-nil, any line that does not begin with the value is considered to begin a new paragraph. Therefore, any re-formatting of comments in Lisp code does not intrude outside the commented lines.

Set Fill Prefix

Editor Command

Arguments: None
Key sequence: Ctrl+X .

Sets the fill-prefix of the current buffer to be the text from the beginning of the current line up to the current point. The fill-prefix may be set to nil by using this command with the current point at the start of a line.

Center Line

Editor Command

Arguments: None
Key sequence: None

Centers the current line with reference to the current value of fill-column .

A prefix argument causes the current line to be centered with reference to the required width.


LispWorks Editor User Guide (Windows version) - 22 Dec 2009

NextPrevUpTopContentsIndex