15.1 Indenting Text

Indent Function  (initial value tab-to-tab-stop) [Variable]
          

The value of this variable determines how indentation is done, and it is a function which is passed a mark as its argument. The function should indent the line that the mark points to. The function may move the mark around on the line. The mark will be :left-inserting. The default simply inserts a tab character at the mark. A function for Lisp mode probably moves the mark to the beginning of the line, deletes horizontal whitespace, and computes some appropriate indentation for Lisp code. [annotate]

[annotate]

Indent with Tabs  (initial value indent-using-tabs) [Variable]
Spaces per Tab  (initial value 8) [Variable]
          

Indent with Tabs holds a function that takes a mark and a number of spaces. The function will insert a maximum number of tabs and a minimum number of spaces at mark to move the specified number of columns. The default definition uses Spaces per Tab to determine the size of a tab. Note, Spaces per Tab is not used everywhere in Hemlock yet, so changing this variable could have unexpected results. [annotate]

[annotate]

indent-region  region [Function]
indent-region-for-commands  region [Function]
          

indent-region invokes the value of Indent Function on every line of region. indent-region-for-commands uses indent-region but first saves the region for the Undo command. [annotate]

[annotate]

delete-horizontal-space  mark [Function]
          

This deletes all characters with a Space attribute (see section 9.5) of 1. [annotate]

[annotate]